ca.odell.glazedlists.swing
Class TreeNodeData

java.lang.Object
  extended by ca.odell.glazedlists.swing.TreeNodeData

public final class TreeNodeData
extends Object

Instances of this class should only be constructed by Glazed Lists. It describes information to related to the tree node that is about to be rendered or edited. Special renderers and editors, TreeTableNodeDataEditor and TreeTableNodeDataRenderer, will receive instances of this class. Renderers and editors that require hierarchical information about tree nodes to produce the correct component should implement one of those editors in order to receive one of these objects detailing the node's information.


Constructor Summary
TreeNodeData()
           
 
Method Summary
 boolean allowsChildren()
          Returns true if the node is of the type that can have child elements; false otherwise.
 int getDepth()
          Returns the depth of the tree node in the hierarchy.
 boolean hasChildren()
          Returns true if the tree node has child nodes; false otherwise.
 boolean isExpanded()
          Returns true if the node is expanded and its children are thus visible; false if it is collapsed and its children are thus hidden.
 void setAllowsChildren(boolean allowsChildren)
           
 void setDepth(int depth)
           
 void setExpanded(boolean expanded)
           
 void setHasChildren(boolean hasChildren)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeNodeData

public TreeNodeData()
Method Detail

getDepth

public int getDepth()
Returns the depth of the tree node in the hierarchy.


setDepth

public void setDepth(int depth)

isExpanded

public boolean isExpanded()
Returns true if the node is expanded and its children are thus visible; false if it is collapsed and its children are thus hidden. This argument only has meaning when hasChildren() returns true; otherwise it should be ignored.


setExpanded

public void setExpanded(boolean expanded)

hasChildren

public boolean hasChildren()
Returns true if the tree node has child nodes; false otherwise.


setHasChildren

public void setHasChildren(boolean hasChildren)

allowsChildren

public boolean allowsChildren()
Returns true if the node is of the type that can have child elements; false otherwise.


setAllowsChildren

public void setAllowsChildren(boolean allowsChildren)


Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by hbrands at 2013-02-12 20:58