com.jgoodies.skeleton.model.node
Class SegmentNode

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

public final class SegmentNode
extends AbstractTreeNode

This class represents segments in the navigation tree.

Version:
$Revision: 1.5 $
Author:
Karsten Lentzsch
See Also:
Segment

Constructor Summary
SegmentNode(NavigationNode parent, Segment segment)
          Constructs a SegmentNode for the specified parent and segment.
 
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 segment.
 Segment getSegment()
          Returns this node's associated Segment 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

SegmentNode

public SegmentNode(NavigationNode parent,
                   Segment segment)
Constructs a SegmentNode for the specified parent and segment.

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

getName

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

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
Parameters:
sel - true for selected node, false for deselected
Returns:
this node's icon.

getSegment

public Segment getSegment()
Returns this node's associated Segment instance.

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


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