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不允许选择。voidaddSelectionPaths(TreePath[] paths) 这被重写为什么都不做;EmptySelectionModel不允许选择。void这被重写为什么都不做;EmptySelectionModel不允许选择。void这被重写为什么都不做;EmptySelectionModel不允许选择。voidremoveSelectionPaths(TreePath[] paths) 这被重写为什么都不做;EmptySelectionModel不允许选择。void这被重写为什么都不做;EmptySelectionModel不允许选择。voidsetRowMapper(RowMapper mapper) 这被重写为什么都不做;EmptySelectionModel不允许选择。voidsetSelectionMode(int mode) 这被重写为什么都不做;EmptySelectionModel不允许选择。voidsetSelectionPaths(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