public interface

MutableTreeNode

implements TreeNode
javax.swing.tree.MutableTreeNode
Known Indirect Subclasses

Class Overview

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.

Summary

Public Methods
abstract void insert(MutableTreeNode child, int index)
Adds child to the receiver at index.
abstract void remove(int index)
Removes the child at index from the receiver.
abstract void remove(MutableTreeNode node)
Removes node from the receiver.
abstract void removeFromParent()
Removes the receiver from its parent.
abstract void setParent(MutableTreeNode newParent)
Sets the parent of the receiver to newParent.
abstract void setUserObject(Object object)
Resets the user object of the receiver to object.
[Expand]
Inherited Methods
From interface javax.swing.tree.TreeNode

Public Methods

public abstract void insert (MutableTreeNode child, int index)

Adds child to the receiver at index. child will be messaged with setParent.

public abstract void remove (int index)

Removes the child at index from the receiver.

public abstract void remove (MutableTreeNode node)

Removes node from the receiver. setParent will be messaged on node.

public abstract void removeFromParent ()

Removes the receiver from its parent.

public abstract void setParent (MutableTreeNode newParent)

Sets the parent of the receiver to newParent.

public abstract void setUserObject (Object object)

Resets the user object of the receiver to object.