public interface TreeNode
Modifier and Type | Method and Description |
---|---|
boolean |
canExpand()
Returns whether this node is expandable.
|
boolean |
collapse()
Tell it that it can release its children.
|
boolean |
expand()
Tell it to expand (ie gather its children).
|
TreeNode |
getChild(int index)
Get the child at the specified index.
|
int |
getChildCount()
Get the number of children that this object has.
|
Iterator |
getChildren()
Get an Iterator for the children.
|
TreeNode |
getParent()
Get the parent of this object.
|
int |
indexOfChild(TreeNode child)
Return the index of the specified child.
|
boolean |
isLeaf()
Returns whether this is a node or leaf.
|
TreeNode getParent()
TreeNode getChild(int index)
int getChildCount()
Iterator getChildren()
int indexOfChild(TreeNode child)
boolean canExpand()
boolean expand()
boolean collapse()
boolean isLeaf()