javax.swing.tree
public interface MutableTreeNode extends TreeNode
Method Summary | |
---|---|
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.
|
Parameters: child the note to insert index the index
See Also: MutableTreeNode remove setParent
Parameters: index the index
See Also: MutableTreeNode remove removeFromParent
Parameters: node the node to remove
See Also: MutableTreeNode MutableTreeNode removeFromParent
See Also: MutableTreeNode remove
Parameters: parent the parent
See Also: MutableTreeNode
Parameters: object the data