public interface TreeNode
HtmlTree. (inspired by javax.swing.tree.TreeNode).| Modifier and Type | Method and Description |
|---|---|
java.util.Iterator |
children()
Answer the children of the receiver.
|
boolean |
getAllowsChildren()
Answer true if this node allows children.
|
TreeNode |
getChildAt(int childIndex)
Answer the child at the given index.
|
int |
getChildCount()
Answer the number of children this node contains.
|
int |
getIndex(TreeNode node)
Answer the index of the given node in this node's children.
|
TreeNode |
getParent()
Answer the parent of this node.
|
java.lang.Object |
getUserObject() |
boolean |
isLeaf()
Answer true if this is a leaf node.
|
java.lang.Object getUserObject()
TreeNode getChildAt(int childIndex)
int getChildCount()
TreeNode getParent()
int getIndex(TreeNode node)
boolean getAllowsChildren()
boolean isLeaf()
java.util.Iterator children()