|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Method Summary | |
java.lang.Object |
getUserObject()
Returns the user object associated with this MutableTreeNode. |
void |
insert(MutableTreeNode child,
int index)
Adds child to this MutableTreeNode at index. |
void |
remove(int index)
Removes the child at index from this MutableTreeNode. |
void |
remove(MutableTreeNode node)
Removes node from this MutableTreeNode. |
void |
removeFromParent()
Removes this MutableTreeNode from its parent. |
void |
setParent(MutableTreeNode newParent)
Sets the parent of this MutableTreeNode to newParent. |
void |
setUserObject(java.lang.Object object)
Resets the user object of this MutableTreeNode to object. |
Methods inherited from interface charvax.swing.tree.TreeNode |
children, getAllowsChildren, getChildAt, getChildCount, getParent, isLeaf |
Method Detail |
public void insert(MutableTreeNode child, int index)
public void remove(int index)
public void remove(MutableTreeNode node)
public java.lang.Object getUserObject()
public void setUserObject(java.lang.Object object)
public void removeFromParent()
public void setParent(MutableTreeNode newParent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |