|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines the requirements for a tree node object that can change -- by adding or removing child nodes, or by changing the contents of a user object stored in the node. (inspired by javax.swing.tree.MutableTreeNode).
Method Summary | |
---|---|
void |
insert(MutableTreeNode child)
Add the given child to the children of this node. |
void |
insert(MutableTreeNode child,
int index)
Add the given child to the children of this node at index. |
void |
remove(int index)
Remove the child at the given index. |
void |
remove(MutableTreeNode node)
Remove the given node. |
void |
removeFromParent()
Remove this node from its parent. |
void |
setParent(MutableTreeNode parent)
Set the parent node. |
void |
setUserObject(java.lang.Object object)
Sets the user object of this node. |
Methods inherited from interface org.apache.myfaces.custom.tree.TreeNode |
---|
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, getUserObject, isLeaf |
Method Detail |
public void insert(MutableTreeNode child)
public void insert(MutableTreeNode child, int index)
public void remove(int index)
public void remove(MutableTreeNode node)
public void setUserObject(java.lang.Object object)
public void removeFromParent()
public void setParent(MutableTreeNode parent)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |