org.apache.myfaces.custom.tree
Interface MutableTreeNode

All Superinterfaces:
TreeNode
All Known Implementing Classes:
DefaultMutableTreeNode

public interface MutableTreeNode
extends TreeNode

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).

Version:
$Revision: 472638 $ $Date: 2006-11-08 15:54:13 -0500 (Wed, 08 Nov 2006) $
Author:
Oliver Rossmueller

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

insert

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

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

void remove(int index)
Remove the child at the given index.


remove

void remove(MutableTreeNode node)
Remove the given node.


setUserObject

void setUserObject(Object object)
Sets the user object of this node.


removeFromParent

void removeFromParent()
Remove this node from its parent.


setParent

void setParent(MutableTreeNode parent)
Set the parent node.



Copyright © 2012 The Apache Software Foundation. All Rights Reserved.