public interface MutableTreeNode extends TreeNode
DefaultMutableTreeNode
, JTree
Modifier and Type | Method and Description |
---|---|
void |
insert(MutableTreeNode child, int index)
将
child 添加到接收者
index 。
|
void |
remove(int index)
从接收器中删除
index 的孩子。
|
void |
remove(MutableTreeNode node)
从接收器中删除
node 。
|
void |
removeFromParent()
从其父母中删除接收者。
|
void |
setParent(MutableTreeNode newParent)
将接收者的父级设置为
newParent 。
|
void |
setUserObject(Object object)
将接收者的用户对象重置为
object 。
|
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf
void insert(MutableTreeNode child, int index)
child
到接收器index
。
child
将被消息与setParent
。
void remove(int index)
index
的孩子。
void remove(MutableTreeNode node)
node
。
setParent
将在node
上node
。
void setUserObject(Object object)
object
。
void removeFromParent()
void setParent(MutableTreeNode newParent)
newParent
。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.