javax.swing.tree

Interface MutableTreeNode

public interface MutableTreeNode extends TreeNode

MutableTreeNode public interface
Method Summary
voidinsert(MutableTreeNode child, int index)
Inserts a node as child at a given index.
voidremove(int index)
Removes the child node a given index.
voidremove(MutableTreeNode node)
Removes a given child node.
voidremoveFromParent()
Removes this node from its parent.
voidsetParent(MutableTreeNode parent)
Sets the parent of the node.
voidsetUserObject(Object object)
Sets a user object, the data represented by the node.

Method Detail

insert

public void insert(MutableTreeNode child, int index)
Inserts a node as child at a given index.

Parameters: child the note to insert index the index

See Also: MutableTreeNode remove setParent

remove

public void remove(int index)
Removes the child node a given index.

Parameters: index the index

See Also: MutableTreeNode remove removeFromParent

remove

public void remove(MutableTreeNode node)
Removes a given child node.

Parameters: node the node to remove

See Also: MutableTreeNode MutableTreeNode removeFromParent

removeFromParent

public void removeFromParent()
Removes this node from its parent.

See Also: MutableTreeNode remove

setParent

public void setParent(MutableTreeNode parent)
Sets the parent of the node.

Parameters: parent the parent

See Also: MutableTreeNode

setUserObject

public void setUserObject(Object object)
Sets a user object, the data represented by the node.

Parameters: object the data