FileDocCategorySizeDatePackage
MutableTreeNode.javaAPI DocJava SE 5 API1425Fri Aug 26 14:58:22 BST 2005javax.swing.tree

MutableTreeNode

public interface MutableTreeNode implements TreeNode
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.
see
DefaultMutableTreeNode
see
javax.swing.JTree
version
1.11 12/19/03
author
Rob Davis
author
Scott Violet

Fields Summary
Constructors Summary
Methods Summary
public voidinsert(javax.swing.tree.MutableTreeNode child, int index)
Adds child to the receiver at index. child will be messaged with setParent.

public voidremove(int index)
Removes the child at index from the receiver.

public voidremove(javax.swing.tree.MutableTreeNode node)
Removes node from the receiver. setParent will be messaged on node.

public voidremoveFromParent()
Removes the receiver from its parent.

public voidsetParent(javax.swing.tree.MutableTreeNode newParent)
Sets the parent of the receiver to newParent.

public voidsetUserObject(java.lang.Object object)
Resets the user object of the receiver to object.