|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MutableTreeNode
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(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 |
---|
void insert(MutableTreeNode child)
void insert(MutableTreeNode child, int index)
void remove(int index)
void remove(MutableTreeNode node)
void setUserObject(Object object)
void removeFromParent()
void setParent(MutableTreeNode parent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |