protected static class JTree.EmptySelectionModel extends DefaultTreeSelectionModel
EmptySelectionModel是
TreeSelectionModel不允许任何选择。
警告:序列化该类的对象与以后的Swing版本不兼容。当前的序列化支持适用于短期贮藏或RMI运行相同Swing版本的应用程序之间。为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, selectionModeCONTIGUOUS_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, updateLeadIndexprotected 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听众的去除;这是不容忽视的
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.