org.apache.myfaces.custom.tree
Interface MutableTreeNode
- TreeNode
- DefaultMutableTreeNode
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).
$Revision: 169651 $ $Date: 2005-05-11 18:14:23 +0200 (Wed, 11 May 2005) $
insert
public void insert(MutableTreeNode child)
Add the given child to the children of this node.
This will set this node as the parent of the child using {#setParent}.
insert
public void insert(MutableTreeNode child,
int index)
Add the given child to the children of this node at index.
This will set this node as the parent of the child using {#setParent}.
remove
public void remove(int index)
Remove the child at the given index.
removeFromParent
public void removeFromParent()
Remove this node from its parent.
setParent
public void setParent(MutableTreeNode parent)
Set the parent node.
setUserObject
public void setUserObject(Object object)
Sets the user object of this node.