|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.odell.glazedlists.swing.TreeNodeData
public final class TreeNodeData
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 |
---|
public TreeNodeData()
Method Detail |
---|
public int getDepth()
public void setDepth(int depth)
public boolean isExpanded()
hasChildren()
returns true; otherwise it should be ignored.
public void setExpanded(boolean expanded)
public boolean hasChildren()
public void setHasChildren(boolean hasChildren)
public boolean allowsChildren()
public void setAllowsChildren(boolean allowsChildren)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |