java.lang.Object
javax.swing.tree.DefaultTreeSelectionModel
javax.swing.JTree.EmptySelectionModel
- 所有已实现的接口:
Serializable
,Cloneable
,TreeSelectionModel
- 封闭类:
JTree
EmptySelectionModel
是一个不允许选择任何内容的 TreeSelectionModel
。
Warning: 此类的序列化对象将与未来的 Swing 版本不兼容。当前的序列化支持适用于运行相同版本 Swing 的应用程序之间的短期存储或 RMI。从 1.4 开始,对所有 JavaBeans 的长期存储的支持已添加到 java.beans
包中。请参阅 XMLEncoder
。
-
字段摘要
字段在类 javax.swing.tree.DefaultTreeSelectionModel 中声明的字段
changeSupport, leadIndex, leadPath, leadRow, listenerList, listSelectionModel, rowMapper, selection, SELECTION_MODE_PROPERTY, selectionMode
在接口 javax.swing.tree.TreeSelectionModel 中声明的字段
CONTIGUOUS_TREE_SELECTION, DISCONTIGUOUS_TREE_SELECTION, SINGLE_TREE_SELECTION
-
构造方法总结
构造方法 -
方法总结
修饰符和类型方法描述void
这被重写为什么都不做;EmptySelectionModel
不允许选择。void
addSelectionPaths
(TreePath[] paths) 这被重写为什么都不做;EmptySelectionModel
不允许选择。void
这被重写为什么都不做;EmptySelectionModel
不允许选择。void
这被重写为什么都不做;EmptySelectionModel
不允许选择。void
removeSelectionPaths
(TreePath[] paths) 这被重写为什么都不做;EmptySelectionModel
不允许选择。void
这被重写为什么都不做;EmptySelectionModel
不允许选择。void
setRowMapper
(RowMapper mapper) 这被重写为什么都不做;EmptySelectionModel
不允许选择。void
setSelectionMode
(int mode) 这被重写为什么都不做;EmptySelectionModel
不允许选择。void
setSelectionPaths
(TreePath[] paths) 这被重写为什么都不做;EmptySelectionModel
不允许选择。static JTree.EmptySelectionModel
返回EmptySelectionModel
的单个实例。在类 javax.swing.tree.DefaultTreeSelectionModel 中声明的方法
addSelectionPath, arePathsContiguous, canPathsBeAdded, canPathsBeRemoved, clearSelection, clone, fireValueChanged, getLeadSelectionPath, getLeadSelectionRow, getListeners, getMaxSelectionRow, getMinSelectionRow, getPropertyChangeListeners, getRowMapper, getSelectionCount, getSelectionMode, getSelectionPath, getSelectionPaths, getSelectionRows, getTreeSelectionListeners, insureRowContinuity, insureUniqueness, isPathSelected, isRowSelected, isSelectionEmpty, notifyPathChange, removeSelectionPath, resetRowSelection, setSelectionPath, toString, updateLeadIndex
-
字段详细信息
-
构造方法详细信息
-
EmptySelectionModel
protected EmptySelectionModel()构造一个EmptySelectionModel
。
-
-
方法详情
-
setSelectionPaths
这被重写为什么都不做;EmptySelectionModel
不允许选择。- 指定者:
setSelectionPaths
在接口TreeSelectionModel
中- 重写:
setSelectionPaths
在类DefaultTreeSelectionModel
中- 参数:
paths
- 选择的路径;这被忽略了
-
addSelectionPaths
这被重写为什么都不做;EmptySelectionModel
不允许选择。- 指定者:
addSelectionPaths
在接口TreeSelectionModel
中- 重写:
addSelectionPaths
在类DefaultTreeSelectionModel
中- 参数:
paths
- 添加到选择的路径;这被忽略了
-
removeSelectionPaths
这被重写为什么都不做;EmptySelectionModel
不允许选择。- 指定者:
removeSelectionPaths
在接口TreeSelectionModel
中- 重写:
removeSelectionPaths
在类DefaultTreeSelectionModel
中- 参数:
paths
- 要删除的路径;这被忽略了
-
setSelectionMode
public void setSelectionMode(int mode) 这被重写为什么都不做;EmptySelectionModel
不允许选择。- 指定者:
setSelectionMode
在接口TreeSelectionModel
中- 重写:
setSelectionMode
在类DefaultTreeSelectionModel
中- 参数:
mode
- 选择模式;这被忽略了- 自从:
- 1.7
-
setRowMapper
这被重写为什么都不做;EmptySelectionModel
不允许选择。- 指定者:
setRowMapper
在接口TreeSelectionModel
中- 重写:
setRowMapper
在类DefaultTreeSelectionModel
中- 参数:
mapper
-RowMapper
实例;这被忽略了- 自从:
- 1.7
-
addTreeSelectionListener
这被重写为什么都不做;EmptySelectionModel
不允许选择。- 指定者:
addTreeSelectionListener
在接口TreeSelectionModel
中- 重写:
addTreeSelectionListener
在类DefaultTreeSelectionModel
中- 参数:
listener
- 要添加的监听器;这被忽略了- 自从:
- 1.7
-
removeTreeSelectionListener
这被重写为什么都不做;EmptySelectionModel
不允许选择。- 指定者:
removeTreeSelectionListener
在接口TreeSelectionModel
中- 重写:
removeTreeSelectionListener
在类DefaultTreeSelectionModel
中- 参数:
listener
- 要删除的监听器;这被忽略了- 自从:
- 1.7
-
addPropertyChangeListener
这被重写为什么都不做;EmptySelectionModel
不允许选择。- 指定者:
addPropertyChangeListener
在接口TreeSelectionModel
中- 重写:
addPropertyChangeListener
在类DefaultTreeSelectionModel
中- 参数:
listener
- 要添加的监听器;这被忽略了- 自从:
- 1.7
-
removePropertyChangeListener
这被重写为什么都不做;EmptySelectionModel
不允许选择。- 指定者:
removePropertyChangeListener
在接口TreeSelectionModel
中- 重写:
removePropertyChangeListener
在类DefaultTreeSelectionModel
中- 参数:
listener
- 要删除的监听器;这被忽略了- 自从:
- 1.7