public interface MutableTreeNode extends TreeNode
| Modifier and Type | Method and Description |
|---|---|
void |
insert(MutableTreeNode child,
int index)
Inserts a node as child at a given index.
|
void |
remove(int index)
Removes the child node a given index.
|
void |
remove(MutableTreeNode node)
Removes a given child node.
|
void |
removeFromParent()
Removes this node from its parent.
|
void |
setParent(MutableTreeNode parent)
Sets the parent of the node.
|
void |
setUserObject(Object object)
Sets a user object, the data represented by the node.
|
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeafvoid insert(MutableTreeNode child, int index)
child - the note to insertindex - the indexremove(int),
remove(MutableTreeNode),
setParent(MutableTreeNode)void remove(int index)
index - the indexinsert(MutableTreeNode,int),
remove(MutableTreeNode),
removeFromParent()void remove(MutableTreeNode node)
node - the node to removeinsert(MutableTreeNode,int),
remove(int),
removeFromParent()void setUserObject(Object object)
object - the datavoid removeFromParent()
remove(int),
remove(MutableTreeNode)void setParent(MutableTreeNode parent)
parent - the parentinsert(MutableTreeNode,int)