Uses of Interface
javax.swing.tree.MutableTreeNode
-
Packages that use MutableTreeNode 软件包 描述 javax.swing 提供一套“轻量级”(全Java语言)组件,尽可能地在所有平台上工作。javax.swing.tree 提供处理javax.swing.JTree
类和接口。 -
-
Uses of MutableTreeNode in javax.swing
Classes in javax.swing that implement MutableTreeNode Modifier and Type Class 描述 static class
JTree.DynamicUtilTreeNode
DynamicUtilTreeNode
可以包装向量/哈希表/数组/字符串,并根据需要创建适当的子树节点。 -
Uses of MutableTreeNode in javax.swing.tree
Classes in javax.swing.tree that implement MutableTreeNode Modifier and Type Class 描述 class
DefaultMutableTreeNode
ADefaultMutableTreeNode
是树状数据结构中的通用节点。Fields in javax.swing.tree declared as MutableTreeNode Modifier and Type Field 描述 protected MutableTreeNode
DefaultMutableTreeNode. parent
该节点的父节点,如果此节点没有父节点,则为nullMethods in javax.swing.tree with parameters of type MutableTreeNode Modifier and Type 方法 描述 void
DefaultMutableTreeNode. add(MutableTreeNode newChild)
从其父项中删除newChild
,并将其添加到该节点的子数组的末尾,使其成为该节点的子节点。void
DefaultMutableTreeNode. insert(MutableTreeNode newChild, int childIndex)
从当前父项(如果有父项)中删除newChild
,将子节点的父节点设置为此节点,然后将子节点添加到索引号为childIndex
节点的子数组。void
MutableTreeNode. insert(MutableTreeNode child, int index)
在child
向接收方添加index
。void
DefaultTreeModel. insertNodeInto(MutableTreeNode newChild, MutableTreeNode parent, int index)
调用此选项将parentChild插入到父项子节点的位置索引中。void
DefaultMutableTreeNode. remove(MutableTreeNode aChild)
从此节点的子数组中删除aChild
,给它一个空父项。void
MutableTreeNode. remove(MutableTreeNode node)
从接收器中删除node
。void
DefaultTreeModel. removeNodeFromParent(MutableTreeNode node)
消息此消息从其父节点删除节点。void
DefaultMutableTreeNode. setParent(MutableTreeNode newParent)
将此节点的父节点设置为newParent
但不会更改父节点的子数组。void
MutableTreeNode. setParent(MutableTreeNode newParent)
将接收者的父节点设置为newParent
。
-