Method Summary |
|
void | addAllNodes(List nodes) Appends all given nodes to this tree node. |
int | addNode(TreeNodeWidget node) Adds the given node as the last child node of this tree node.
Parameters: node - child node to be added. |
void | addNode(int index, TreeNodeWidget node) Adds the given node to the specified position. |
Widget | getDisplayWidget() Returns the display widget of this tree node. |
String | getFullId() Returns the full id of this tree node. |
int | getIndex() Returns the index this node has under its parent. |
TreeNodeContext | getNode(int index) Returns a child node of this tree node. |
int | getNodeCount() Returns the number of child nodes this tree node has. |
List | getNodes() Returns all child nodes of this tree node. |
int | getParentCount() Returns how many parent nodes this TreeNodeWidget has. |
TreeNodeContext | getParentNode() Returns parent node of this tree node or null if called on the root node. |
boolean | hasNodes() Returns if this tree node has any child nodes. |
boolean | isCollapsed() Returns if tree node is collapsed (children hidden). |
void | removeAllNodes() Removes all child nodes of this tree node. |
TreeNodeWidget | removeNode(int index) Removes child node at the specified position. |
void | renderNode(OutputData data) Renders tree node and all of its children to specified
OutputData . |
void | setCollapsed(boolean collapsed) Sets collapsed state of tree node. |
void | toggleCollapsed() Inverts collapsed state of tree node, collapsing expanded node and vice
versa. |