com.jgoodies.skeleton.model.node
Class FlangeNode

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

public final class FlangeNode
extends AbstractTreeNode

This class represents flanges in the navigation tree.

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

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

FlangeNode

public FlangeNode(NavigationNode parent,
                  Flange flange)
Constructs a FlangeNode for the specified parent and flange.

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

getName

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

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.

getFlange

public Flange getFlange()
Returns this node's associated Flange instance.

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


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