|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TreeNode
A representation of a node in a tree.
Method Summary | |
---|---|
int |
getChildCount()
Get the number of children of the node. |
java.lang.Object |
getChildValue(int index)
Get the value associated with a child node. |
int |
getIndex()
Get the index of the current node relative to its parent. |
TreeNode |
getParent()
Get the parent node of this node. |
java.lang.Object |
getValue()
Get the value associated with this node. |
boolean |
isChildLeaf(int index)
Check whether or not a child node is a leaf node. |
boolean |
isChildOpen(int index)
Check whether or not a child node is open. |
boolean |
isDestroyed()
Check whether or not the current node is destroyed. |
TreeNode |
setChildOpen(int index,
boolean open)
Open or close a child node and fire an event. |
TreeNode |
setChildOpen(int index,
boolean open,
boolean fireEvents)
Open or close the node, optionally firing an event. |
Method Detail |
---|
int getChildCount()
java.lang.Object getChildValue(int index)
index
- the child index
int getIndex()
TreeNode getParent()
java.lang.Object getValue()
boolean isChildLeaf(int index)
index
- the index of the child
boolean isChildOpen(int index)
index
- the index of the child
boolean isDestroyed()
IllegalStateException
.
TreeNode setChildOpen(int index, boolean open)
open
is true
and the TreeNode
successfully opens, returns the child
TreeNode
. Delegates to setChildOpen(int,boolean, boolean)
.
index
- the index of the childopen
- true to open, false to close
TreeNode
that was opened, or null if the node was
closed or could not be openedTreeNode setChildOpen(int index, boolean open, boolean fireEvents)
open
is
true and the TreeNode
successfully opens, returns the child
TreeNode
.
index
- the index of the childopen
- true to open, false to flosefireEvents
- true to fire an event, false not to
TreeNode
that was opened, or null if the node was
closed or could not be opened
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |