软件包 | 描述 |
---|---|
javax.swing |
提供了一套“轻量级”(所有的java语言)组件,以最大可能的程度,在所有平台上工作。
|
javax.swing.plaf.basic |
根据基本的外观和感觉提供内置的用户界面对象。
|
javax.swing.tree |
处理
javax.swing.JTree 提供类和接口。
|
Modifier and Type | Field and Description |
---|---|
protected TreeModel |
JTree.treeModel
定义此对象显示的树的模型。
|
Modifier and Type | Method and Description |
---|---|
protected static TreeModel |
JTree.createTreeModel(Object value)
返回一个
TreeModel 包装指定的对象。
|
protected static TreeModel |
JTree.getDefaultTreeModel()
创建并返回一个样本
TreeModel 。
|
TreeModel |
JTree.getModel()
返回
TreeModel 正在提供的数据。
|
Modifier and Type | Method and Description |
---|---|
void |
JTree.setModel(TreeModel newModel)
集
TreeModel 将提供数据。
|
Constructor and Description |
---|
JTree(TreeModel newModel)
返回一个实例
JTree 显示根节点的树是使用指定的数据模型。
|
Modifier and Type | Field and Description |
---|---|
protected TreeModel |
BasicTreeUI.treeModel
用于确定显示什么。
|
Modifier and Type | Method and Description |
---|---|
protected TreeModel |
BasicTreeUI.getModel() |
Modifier and Type | Method and Description |
---|---|
protected void |
BasicTreeUI.setModel(TreeModel model)
集的树。
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultTreeModel
一个简单的树型数据模型,采用treenodes。
|
Modifier and Type | Field and Description |
---|---|
protected TreeModel |
AbstractLayoutCache.treeModel
模型提供信息。
|
Modifier and Type | Method and Description |
---|---|
TreeModel |
AbstractLayoutCache.getModel()
返回
TreeModel 正在提供的数据。
|
Modifier and Type | Method and Description |
---|---|
void |
FixedHeightLayoutCache.setModel(TreeModel newModel)
集的树模型,将提供数据。
|
void |
AbstractLayoutCache.setModel(TreeModel newModel)
集
TreeModel 将提供数据。
|
void |
VariableHeightLayoutCache.setModel(TreeModel newModel)
集
TreeModel 将提供数据。
|
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.