No cache version.
Caching disabled. Default setting for this page:enabled (code LNG204)If the display is too slow, you can disable the user mode to view the cached version.
-
- All Superinterfaces:
- TreeNode
- All Known Implementing Classes:
- DefaultMutableTreeNode, JTree.DynamicUtilTreeNode
public interface MutableTreeNode extends 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 Also:
DefaultMutableTreeNode
,JTree
-
-
Method Summary
Methods Modifier and Type Method and Description void
insert(MutableTreeNode child, int index)
Addschild
to the receiver atindex
.void
remove(int index)
Removes the child atindex
from the receiver.void
remove(MutableTreeNode node)
Removesnode
from the receiver.void
removeFromParent()
Removes the receiver from its parent.void
setParent(MutableTreeNode newParent)
Sets the parent of the receiver tonewParent
.void
setUserObject(Object object)
Resets the user object of the receiver toobject
.-
Methods inherited from interface javax.swing.tree.TreeNode
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf
-
-
-
-
Method Detail
-
insert
void insert(MutableTreeNode child, int index)
Addschild
to the receiver atindex
.child
will be messaged withsetParent
.
-
remove
void remove(int index)
Removes the child atindex
from the receiver.
-
remove
void remove(MutableTreeNode node)
Removesnode
from the receiver.setParent
will be messaged onnode
.
-
setUserObject
void setUserObject(Object object)
Resets the user object of the receiver toobject
.
-
removeFromParent
void removeFromParent()
Removes the receiver from its parent.
-
setParent
void setParent(MutableTreeNode newParent)
Sets the parent of the receiver tonewParent
.
-
-
Can not display this page of the Infobrol website
Type of error (18-01)
Unknown format specifier "&"Please try again in a few minutes…
Steph