public final class TreeNodeData
extends java.lang.Object
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 and Description |
---|
TreeNodeData() |
Modifier and Type | Method and Description |
---|---|
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) |
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)
Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by mockbuild at 2016-06-08 1:48