protected static class JTree.EmptySelectionModel extends DefaultTreeSelectionModel
EmptySelectionModel
是一个TreeSelectionModel
,不允许任何东西被选中。
警告:此类的序列化对象与将来的Swing版本不兼容。 当前的序列化支持适用于运行相同版本的Swing的应用程序之间的短期存储或RMI。
从1.4开始,对所有JavaBeans的长期存储的支持已经添加到java.beans
包中。 请参阅XMLEncoder
。
Modifier and Type | Field and Description |
---|---|
protected static JTree.EmptySelectionModel |
sharedInstance
单身
EmptySelectionModel 。
|
changeSupport,
leadIndex,
leadPath,
leadRow,
listenerList,
listSelectionModel,
rowMapper,
selection,
SELECTION_MODE_PROPERTY,
selectionMode
CONTIGUOUS_TREE_SELECTION,
DISCONTIGUOUS_TREE_SELECTION,
SINGLE_TREE_SELECTION
Modifier | Constructor and Description |
---|---|
protected |
EmptySelectionModel()
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
这样做是无效的
EmptySelectionModel 不允许选择。
|
void |
addSelectionPaths(TreePath[] paths)
这样做是无效的
EmptySelectionModel 不允许选择。
|
void |
addTreeSelectionListener(TreeSelectionListener listener)
这样做是无效的
EmptySelectionModel 不允许选择。
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
这样做是无效的
EmptySelectionModel 不允许选择。
|
void |
removeSelectionPaths(TreePath[] paths)
这样做是无效的
EmptySelectionModel 不允许选择。
|
void |
removeTreeSelectionListener(TreeSelectionListener listener)
这样做是无效的
EmptySelectionModel 不允许进行选择。
|
void |
setRowMapper(RowMapper mapper)
这样做是无效的
EmptySelectionModel 不允许选择。
|
void |
setSelectionMode(int mode)
这样做是无效的
EmptySelectionModel 不允许选择。
|
void |
setSelectionPaths(TreePath[] paths)
这样做是无效的
EmptySelectionModel 不允许选择。
|
static JTree.EmptySelectionModel |
sharedInstance()
返回单个实例
EmptySelectionModel 。
|
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
protected static final JTree.EmptySelectionModel sharedInstance
EmptySelectionModel
。
public static JTree.EmptySelectionModel sharedInstance()
EmptySelectionModel
。
EmptySelectionModel
public void setSelectionPaths(TreePath[] paths)
EmptySelectionModel
不允许选择。
setSelectionPaths
在接口
TreeSelectionModel
setSelectionPaths
在
DefaultTreeSelectionModel
paths
- 选择的路径;
这被忽略
public void addSelectionPaths(TreePath[] paths)
EmptySelectionModel
不允许选择。
addSelectionPaths
在接口
TreeSelectionModel
addSelectionPaths
在
DefaultTreeSelectionModel
paths
- 添加到选择的路径;
这被忽略
public void removeSelectionPaths(TreePath[] paths)
EmptySelectionModel
不允许进行选择。
removeSelectionPaths
在界面
TreeSelectionModel
removeSelectionPaths
在
DefaultTreeSelectionModel
类
paths
- 要删除的路径;
这被忽略
public void setSelectionMode(int mode)
EmptySelectionModel
不允许选择。
setSelectionMode
在界面
TreeSelectionModel
setSelectionMode
在
DefaultTreeSelectionModel
mode
- 选择模式;
这被忽略
public void setRowMapper(RowMapper mapper)
EmptySelectionModel
不允许选择。
setRowMapper
在接口
TreeSelectionModel
setRowMapper
在
DefaultTreeSelectionModel
mapper
- RowMapper
实例;
这被忽略
public void addTreeSelectionListener(TreeSelectionListener listener)
EmptySelectionModel
不允许选择。
addTreeSelectionListener
在界面
TreeSelectionModel
addTreeSelectionListener
在
DefaultTreeSelectionModel
类
listener
- 收听者添加;
这被忽略
public void removeTreeSelectionListener(TreeSelectionListener listener)
EmptySelectionModel
不允许选择。
removeTreeSelectionListener
在界面
TreeSelectionModel
removeTreeSelectionListener
在
DefaultTreeSelectionModel
listener
- 要删除的侦听器
这被忽略
public void addPropertyChangeListener(PropertyChangeListener listener)
EmptySelectionModel
不允许进行选择。
addPropertyChangeListener
在接口
TreeSelectionModel
addPropertyChangeListener
在
DefaultTreeSelectionModel
listener
- 收听者添加;
这被忽略
public void removePropertyChangeListener(PropertyChangeListener listener)
EmptySelectionModel
不允许选择。
removePropertyChangeListener
在界面
TreeSelectionModel
removePropertyChangeListener
在
DefaultTreeSelectionModel
listener
- 要删除的侦听器
这被忽略