接口 | 描述 |
---|---|
MutableTreeNode |
定义可以改变的树节点对象的要求,通过添加或删除子节点,或通过改变存储在节点中的用户对象的内容来定义。
|
RowMapper |
定义一个对象的要求,该对象将在树中的路径转换为显示行。
|
TreeCellEditor |
增加了celleditor需配置一树编辑器扩展。
|
TreeCellRenderer |
定义显示树节点的对象的要求。
|
TreeModel |
用
JTree 模型。
|
TreeNode |
定义可作为一个JTree树节点对象的要求。
|
TreeSelectionModel |
此接口表示树组件的选择的当前状态。
|
类 | 描述 |
---|---|
AbstractLayoutCache |
警告:序列化该类的对象与以后的Swing版本不兼容。
|
AbstractLayoutCache.NodeDimensions |
用
AbstractLayoutCache 尺寸的确定与特定节点x的起源。
|
DefaultMutableTreeNode |
一个
DefaultMutableTreeNode 在树的数据结构的通用节点。
|
DefaultTreeCellEditor |
一个
TreeCellEditor 。
|
DefaultTreeCellRenderer |
显示一个在树中的条目。
|
DefaultTreeModel |
一个简单的树型数据模型,采用treenodes。
|
DefaultTreeSelectionModel |
treeselectionmodel默认实现的。
|
FixedHeightLayoutCache |
注意:这将在未来的版本中变得更加开放。
|
TreePath |
TreePath 代表对象的唯一标识路径树中的节点数组。
|
VariableHeightLayoutCache |
注意:这将在未来的版本中变得更加开放。
|
异常 | 描述 |
---|---|
ExpandVetoException |
用于停止和扩大/崩溃发生的例外。
|
javax.swing.JTree
提供类和接口。你使用这些类和接口,如果你想控制树的构建、更新和渲染,以及如何与树节点的相关数据进行查看和管理。
注:大多数Swing API不是线程安全的。详情见Threads and Swing,java教程中的一部分。
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.