- java.lang.Object
-  
      - javax.swing.tree.DefaultTreeSelectionModel
-  
        - javax.swing.JTree.EmptySelectionModel
 
 
-  
       - 实现的所有接口
-  
         Serializable,Cloneable,TreeSelectionModel
 - Enclosing class:
- JTree
 
 protected static class JTree.EmptySelectionModel extends DefaultTreeSelectionModel EmptySelectionModel是TreeSelectionModel,不允许任何选择。警告:此类的序列化对象与以后的Swing版本不兼容。 当前的序列化支持适用于运行相同版本Swing的应用程序之间的短期存储或RMI。 从1.4开始, java.beans软件包中添加了对所有JavaBeansjava.beans长期存储的支持。 请参阅XMLEncoder。- 另请参见:
- Serialized Form
 
-  
        
       -  
             字段汇总字段 变量和类型 字段 描述 protected static JTree.EmptySelectionModelsharedInstance单个实例EmptySelectionModel。-  
               声明的属性在类 javax.swing.tree.DefaultTreeSelectionModelchangeSupport, leadIndex, leadPath, leadRow, listenerList, listSelectionModel, rowMapper, selection, SELECTION_MODE_PROPERTY, selectionMode
 -  
               Fields declared in interface javax.swing.tree.TreeSelectionModelCONTIGUOUS_TREE_SELECTION, DISCONTIGUOUS_TREE_SELECTION, SINGLE_TREE_SELECTION
 
-  
               
 -  
             构造方法摘要构造方法 变量 构造器 描述 protectedEmptySelectionModel()
 -  
             方法摘要所有方法 静态方法 实例方法 具体的方法 变量和类型 方法 描述 voidaddPropertyChangeListener(PropertyChangeListener listener)这是重写,什么都不做;EmptySelectionModel不允许选择。voidaddSelectionPaths(TreePath[] paths)这是重写,什么都不做;EmptySelectionModel不允许选择。voidaddTreeSelectionListener(TreeSelectionListener listener)这是重写,什么都不做;EmptySelectionModel不允许选择。voidremovePropertyChangeListener(PropertyChangeListener listener)这是重写,什么都不做;EmptySelectionModel不允许选择。voidremoveSelectionPaths(TreePath[] paths)这是重写,什么都不做;EmptySelectionModel不允许选择。voidremoveTreeSelectionListener(TreeSelectionListener listener)这是重写,什么都不做;EmptySelectionModel不允许选择。voidsetRowMapper(RowMapper mapper)这是重写,什么都不做;EmptySelectionModel不允许选择。voidsetSelectionMode(int mode)这是重写,什么都不做;EmptySelectionModel不允许选择。voidsetSelectionPaths(TreePath[] paths)这是重写,什么都不做;EmptySelectionModel不允许选择。static JTree.EmptySelectionModelsharedInstance()返回EmptySelectionModel的单个实例。-  
               声明方法的类 javax.swing.tree.DefaultTreeSelectionModeladdSelectionPath, 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
 
-  
               
 
-  
             
-  
        
       -  
             字段详细信息-  sharedInstanceprotected static final JTree.EmptySelectionModel sharedInstance 单个实例EmptySelectionModel。
 
-  
 -  
             方法详细信息-  sharedInstancepublic static JTree.EmptySelectionModel sharedInstance() 返回EmptySelectionModel的单个实例。- 结果
- 
               单个实例 
              EmptySelectionModel
 
 -  setSelectionPathspublic void setSelectionPaths(TreePath[] paths) 这是重写,什么都不做;EmptySelectionModel不允许选择。- Specified by:
-  
              setSelectionPaths在接口TreeSelectionModel
- 重写:
-  
              setSelectionPaths在类DefaultTreeSelectionModel
- 参数
-  
              paths- 要选择的路径; 这被忽略了
 
 -  addSelectionPathspublic void addSelectionPaths(TreePath[] paths) 这是重写,什么都不做;EmptySelectionModel不允许选择。- Specified by:
-  
              addSelectionPaths在界面TreeSelectionModel
- 重写:
-  
              addSelectionPaths类DefaultTreeSelectionModel
- 参数
-  
              paths- 要添加到选择的路径; 这被忽略了
 
 -  removeSelectionPathspublic void removeSelectionPaths(TreePath[] paths) 这是重写,什么都不做;EmptySelectionModel不允许选择。- Specified by:
-  
              removeSelectionPaths在界面TreeSelectionModel
- 重写:
-  
              removeSelectionPaths类DefaultTreeSelectionModel
- 参数
-  
              paths- 要删除的路径; 这被忽略了
 
 -  setSelectionModepublic void setSelectionMode(int mode) 这是重写,什么都不做;EmptySelectionModel不允许选择。- Specified by:
-  
              setSelectionMode在界面TreeSelectionModel
- 重写:
-  
              setSelectionMode在类DefaultTreeSelectionModel
- 参数
-  
              mode- 选择模式; 这被忽略了
- 从以下版本开始:
- 1.7
 
 -  setRowMapperpublic void setRowMapper(RowMapper mapper) 这是重写,什么都不做;EmptySelectionModel不允许选择。- Specified by:
-  
              setRowMapper在接口TreeSelectionModel
- 重写:
-  
              setRowMapper在类DefaultTreeSelectionModel
- 参数
-  
              mapper-RowMapper实例; 这被忽略了
- 从以下版本开始:
- 1.7
 
 -  addTreeSelectionListenerpublic void addTreeSelectionListener(TreeSelectionListener listener) 这是重写,什么都不做;EmptySelectionModel不允许选择。- Specified by:
-  
              addTreeSelectionListener在接口TreeSelectionModel
- 重写:
-  
              addTreeSelectionListener在类DefaultTreeSelectionModel
- 参数
-  
              listener- 要添加的侦听器; 这被忽略了
- 从以下版本开始:
- 1.7
 
 -  removeTreeSelectionListenerpublic void removeTreeSelectionListener(TreeSelectionListener listener) 这是重写,什么都不做;EmptySelectionModel不允许选择。- Specified by:
-  
              removeTreeSelectionListener在界面TreeSelectionModel
- 重写:
-  
              removeTreeSelectionListener在类DefaultTreeSelectionModel
- 参数
-  
              listener- 要删除的侦听器; 这被忽略了
- 从以下版本开始:
- 1.7
 
 -  addPropertyChangeListenerpublic void addPropertyChangeListener(PropertyChangeListener listener) 这是重写,什么都不做;EmptySelectionModel不允许选择。- Specified by:
-  
              addPropertyChangeListener在界面TreeSelectionModel
- 重写:
-  
              addPropertyChangeListener在类DefaultTreeSelectionModel
- 参数
-  
              listener- 要添加的侦听器; 这被忽略了
- 从以下版本开始:
- 1.7
 
 -  removePropertyChangeListenerpublic void removePropertyChangeListener(PropertyChangeListener listener) 这是重写,什么都不做;EmptySelectionModel不允许选择。- Specified by:
-  
              removePropertyChangeListener在界面TreeSelectionModel
- 重写:
-  
              removePropertyChangeListener类DefaultTreeSelectionModel
- 参数
-  
              listener- 要删除的侦听器; 这被忽略了
- 从以下版本开始:
- 1.7
 
 
-  
 
-