com.jgoodies.skeleton.model.node
Class ShaftNode

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

public final class ShaftNode
extends AbstractTreeNode

This class represents shafts in the navigation tree.

Version:
$Revision: 1.12 $
Author:
Karsten Lentzsch
See Also:
Shaft

Constructor Summary
ShaftNode(NavigationNode parent, Shaft shaft)
          Constructs a ShaftNode for the given parent and shaft.
 
Method Summary
 Icon getIcon(boolean sel)
          Returns this node's icon, ignores the selection.
 String getName()
          Returns this node's name, the identifier of the associated shaft.
 Shaft getShaft()
          Returns this node's associated Shaft instance.
 
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

ShaftNode

public ShaftNode(NavigationNode parent,
                 Shaft shaft)
Constructs a ShaftNode for the given parent and shaft.

Parameters:
parent - this node's parent
shaft - the associated model, an instance of Shaft
Method Detail

getName

public String getName()
Returns this node's name, the identifier of the associated shaft.

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 node's icon.

getShaft

public Shaft getShaft()
Returns this node's associated Shaft instance.

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


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