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 变量和类型 类 描述 static class
JTree.DynamicUtilTreeNode
DynamicUtilTreeNode
可以包装矢量/哈希表/数组/字符串,并根据需要创建相应的子树节点。 -
Uses of MutableTreeNode in javax.swing.tree
Classes in javax.swing.tree that implement MutableTreeNode 变量和类型 类 描述 class
DefaultMutableTreeNode
DefaultMutableTreeNode
是树数据结构中的通用节点。Fields in javax.swing.tree declared as MutableTreeNode 变量和类型 字段 描述 protected MutableTreeNode
DefaultMutableTreeNode. parent
此节点的父节点,如果此节点没有父节点,则返回nullMethods in javax.swing.tree with parameters of type MutableTreeNode 变量和类型 方法 描述 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)
调用此方法在父项子项中的位置索引处插入newChild。void
DefaultMutableTreeNode. remove(MutableTreeNode aChild)
从此节点的子数组中删除aChild
,为其提供null父项。void
MutableTreeNode. remove(MutableTreeNode node)
从接收器中删除node
。void
DefaultTreeModel. removeNodeFromParent(MutableTreeNode node)
发送消息以从其父节点中删除节点。void
DefaultMutableTreeNode. setParent(MutableTreeNode newParent)
将此节点的父节点设置为newParent
但不更改父节点的子节点。void
MutableTreeNode. setParent(MutableTreeNode newParent)
将接收器的父级设置为newParent
。
-