org.apache.tapestry.contrib.tree.model
Interface IMutableTreeNode

All Superinterfaces:
ITreeNode, Serializable
All Known Implementing Classes:
TreeNode

public interface IMutableTreeNode
extends ITreeNode

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.

Version:
$Id: IMutableTreeNode.java 243791 2004-02-19 17:38:13Z hlship $
Author:
ceco
See Also:
DefaultMutableTreeNode, JTree

Method Summary
 void insert(Collection colChildren)
          Adds collection ofchildren to the receiver.
 void remove(IMutableTreeNode node)
          Removes node from the receiver.
 void removeFromParent()
          Removes the receiver from its parent.
 void setParent(IMutableTreeNode newParent)
          Sets the parent of the receiver to newParent.
 
Methods inherited from interface org.apache.tapestry.contrib.tree.model.ITreeNode
containsChild, getAllowsChildren, getChildCount, getChildren, getParent, isLeaf
 

Method Detail

insert

void insert(Collection colChildren)
Adds collection ofchildren to the receiver. Child will be messaged with setParent.


remove

void remove(IMutableTreeNode node)
Removes node from the receiver. setParent will be messaged on node.


removeFromParent

void removeFromParent()
Removes the receiver from its parent.


setParent

void setParent(IMutableTreeNode newParent)
Sets the parent of the receiver to newParent.