ewe.data
Interface MutableTreeNode

All Superinterfaces:
TreeNode
All Known Implementing Classes:
LiveTreeNode, MutableTreeNodeObject

public interface MutableTreeNode
extends TreeNode


Method Summary
 void addChild(MutableTreeNode child)
          Add a child to this TreeNode at the end of the child list.
 void insertChild(MutableTreeNode child, int index)
          Insert a child at the specified index.
 void removeChild(MutableTreeNode child)
          Remove a child from this TreeNode.
 void setParent(TreeNode parent)
          Set the parent of this TreeNode.
 
Methods inherited from interface ewe.data.TreeNode
canExpand, collapse, expand, getChild, getChildCount, getChildren, getParent, indexOfChild, isLeaf
 

Method Detail

setParent

public void setParent(TreeNode parent)
Set the parent of this TreeNode.


insertChild

public void insertChild(MutableTreeNode child,
                        int index)
Insert a child at the specified index. If the index is greater than the number of children, the child will be appended to the child list. If the child is already in the child list it will be removed and then re-inserted at the specified index.


addChild

public void addChild(MutableTreeNode child)
Add a child to this TreeNode at the end of the child list. If the child is already in the child list it will be removed and then added to the end.


removeChild

public void removeChild(MutableTreeNode child)
Remove a child from this TreeNode.