软件包 | 描述 |
---|---|
javax.swing |
提供了一套“轻量级”(所有的java语言)组件,以最大可能的程度,在所有平台上工作。
|
javax.swing.plaf.basic |
根据基本的外观和感觉提供内置的用户界面对象。
|
javax.swing.tree |
处理
javax.swing.JTree 提供类和接口。
|
Modifier and Type | Class and Description |
---|---|
protected class |
JTree.AccessibleJTree
这个类实现了对
JTree 类可访问性支持。
|
protected class |
JTree.TreeSelectionRedirector
可以创建与
JTree 作为源的一个新的
TreeSelectionEvent 并通过它所有的听众。
|
Modifier and Type | Method and Description |
---|---|
TreeSelectionListener[] |
JTree.getTreeSelectionListeners()
返回所有的
TreeSelectionListener s数组添加到这个JTree addtreeselectionlistener()。
|
Modifier and Type | Method and Description |
---|---|
void |
JTree.addTreeSelectionListener(TreeSelectionListener tsl)
添加了一个
TreeSelection 事件监听器。
|
void |
JTree.EmptySelectionModel.addTreeSelectionListener(TreeSelectionListener listener)
这是覆盖,什么也不做;
EmptySelectionModel 不允许选择。
|
void |
JTree.removeTreeSelectionListener(TreeSelectionListener tsl)
删除一个
TreeSelection 听众。
|
void |
JTree.EmptySelectionModel.removeTreeSelectionListener(TreeSelectionListener listener)
这是覆盖,什么也不做;
EmptySelectionModel 不允许选择。
|
Modifier and Type | Class and Description |
---|---|
class |
BasicTreeUI.TreeSelectionHandler
侦听选择模型中的更改,并相应地更新显示。
|
Modifier and Type | Method and Description |
---|---|
protected TreeSelectionListener |
BasicTreeUI.createTreeSelectionListener()
创建基于选择更改方法的更新显示的侦听器。
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultTreeCellEditor
一个
TreeCellEditor 。
|
Modifier and Type | Method and Description |
---|---|
TreeSelectionListener[] |
DefaultTreeSelectionModel.getTreeSelectionListeners()
返回在这个模型上注册的所有树选择侦听器的数组。
|
Modifier and Type | Method and Description |
---|---|
void |
TreeSelectionModel.addTreeSelectionListener(TreeSelectionListener x)
x的听众,每一次选择的treepaths改变设置的通知列表。
|
void |
DefaultTreeSelectionModel.addTreeSelectionListener(TreeSelectionListener x)
x的听众,每一次选择的treepaths改变设置的通知列表。
|
void |
TreeSelectionModel.removeTreeSelectionListener(TreeSelectionListener x)
删除x从听众,每一次选择的treepaths改变设置的通知列表。
|
void |
DefaultTreeSelectionModel.removeTreeSelectionListener(TreeSelectionListener x)
删除x从听众,每一次选择的treepaths改变设置的通知列表。
|
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.