com.jgoodies.skeleton.model.node
Class RootNode

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

public final class RootNode
extends AbstractTreeNode

Describes the root node in the Skeleton (Pro) navigation tree.

Version:
$Revision: 1.9 $
Author:
Karsten Lentzsch

Constructor Summary
RootNode(Project project)
          Creates a root node for the specified project.
 
Method Summary
 Icon getIcon(boolean sel)
          Returns this node's icon.
 String getName()
          Returns this node's name.
 Project getProject()
          Returns this node's associated Description instance.
 String toString()
          Returns a string representation for this node.
 
Methods inherited from class com.jgoodies.skeleton.model.node.AbstractTreeNode
add, children, getAllowsChildren, getChildAt, getChildCount, getIndex, getModel, getParent, isLeaf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RootNode

public RootNode(Project project)
Creates a root node for the specified project.

Parameters:
project - the associated project
Method Detail

getProject

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

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

getIcon

public Icon getIcon(boolean sel)
Returns this node's icon. Since the root node will be hidden by the tree, we can return null.

Specified by:
getIcon in interface NavigationNode
Overrides:
getIcon in class AbstractTreeNode
Returns:
null

getName

public String getName()
Returns this node's name. Since the root node will be hidden by the tree, we can return null.

Specified by:
getName in interface NavigationNode
Specified by:
getName in class AbstractTreeNode
Returns:
null

toString

public String toString()
Returns a string representation for this node. Currently it prints the class info and node name.

Overrides:
toString in class AbstractTreeNode
Returns:
a string representation for this node


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