com.jgoodies.skeleton.model.node
Class DescriptionNode

java.lang.Object
  extended by com.jgoodies.skeleton.model.node.AbstractTreeNode
      extended by com.jgoodies.skeleton.model.node.DescriptionNode
All Implemented Interfaces:
NavigationNode, TreeNode

public final class DescriptionNode
extends AbstractTreeNode

This class represents the project description in the navigation tree.

Version:
$Revision: 1.11 $
Author:
Karsten Lentzsch
See Also:
Description

Constructor Summary
DescriptionNode(NavigationNode parent, Description description)
          Constructs a DescriptionNode for the given parent and description.
 
Method Summary
 Description getDescription()
          Returns this node's associated Description instance.
 Icon getIcon(boolean sel)
          Returns this node's icon, ignores the selection.
 String getName()
          Returns this node's name, a constant requested from the global resource repository.
 
Methods inherited from class com.jgoodies.skeleton.model.node.AbstractTreeNode
add, children, getAllowsChildren, getChildAt, getChildCount, getIndex, getModel, getParent, isLeaf, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DescriptionNode

public DescriptionNode(NavigationNode parent,
                       Description description)
Constructs a DescriptionNode for the given parent and description.

Parameters:
parent - this node's parent
description - the associated model, a description instance
Method Detail

getName

public String getName()
Returns this node's name, a constant requested from the global resource repository.

Specified by:
getName in interface NavigationNode
Specified by:
getName in class AbstractTreeNode
Returns:
this node's name

getIcon

public Icon getIcon(boolean sel)
Returns this node's icon, ignores the selection. The icons is requested from a global resource repository.

Specified by:
getIcon in interface NavigationNode
Overrides:
getIcon in class AbstractTreeNode
Returns:
this description node's icon.

getDescription

public Description getDescription()
Returns this node's associated Description instance.

Returns:
this node's associated Description instance.
See Also:
NavigationNode.getModel()


Copyright © 2002-2008 JGoodies Karsten Lentzsch. All Rights Reserved.