com.google.gwt.user.cellview.client.TreeNode |
A representation of a node in a tree.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get the number of children of the node.
| |||||||||||
Get the value associated with a child node.
| |||||||||||
Get the index of the current node relative to its parent.
| |||||||||||
Get the parent node of this node.
| |||||||||||
Get the value associated with this node.
| |||||||||||
Check whether or not a child node is a leaf node.
| |||||||||||
Check whether or not a child node is open.
| |||||||||||
Check whether or not the current node is destroyed.
| |||||||||||
Open or close a child node and fire an event.
| |||||||||||
Open or close the node, optionally firing an event.
|
Get the number of children of the node.
Get the value associated with a child node.
index | the child index |
---|
Get the index of the current node relative to its parent.
Get the parent node of this node.
Get the value associated with this node. This method can be called on destroyed nodes.
Check whether or not a child node is a leaf node.
index | the index of the child |
---|
Check whether or not a child node is open.
index | the index of the child |
---|
Check whether or not the current node is destroyed. The node is destroyed
when it is closed, even if it still appears in the tree as an unopened
non-leaf node. Once a node is destroyed, calling most methods on the node
results in an IllegalStateException
.
Open or close a child node and fire an event. If open
is true
and the TreeNode
successfully opens, returns the child
TreeNode
. Delegates to setChildOpen(int, boolean, boolean)
.
index | the index of the child |
---|---|
open | true to open, false to close |
TreeNode
that was opened, or null if the node was
closed or could not be opened
Open or close the node, optionally firing an event. If open
is
true and the TreeNode
successfully opens, returns the child
TreeNode
.
index | the index of the child |
---|---|
open | true to open, false to flose |
fireEvents | true to fire an event, false not to |
TreeNode
that was opened, or null if the node was
closed or could not be opened