JavaTM 2 Platform
Standard Ed. 6

javax.swing
类 JTree.EmptySelectionModel

java.lang.Object
  继承者 javax.swing.tree.DefaultTreeSelectionModel
      继承者 javax.swing.JTree.EmptySelectionModel
所有已实现的接口:
Serializable, Cloneable, TreeSelectionModel
正在封闭类:
JTree

protected static class JTree.EmptySelectionModel
extends DefaultTreeSelectionModel

EmptySelectionModel 是一个不允许选择任何内容的 TreeSelectionModel

警告:此类的序列化对象将与以后的 Swing 版本不兼容。当前的序列化支持适用于短期存储或运行相同 Swing 版本的应用程序之间的 RMI。从 1.4 版本开始,已在 java.beans 包中添加了支持所有 JavaBeansTM 长期存储的功能。请参见 XMLEncoder


字段摘要
protected static JTree.EmptySelectionModel sharedInstance
          独有的共享实例。
 
从类 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
 
构造方法摘要
protected JTree.EmptySelectionModel()
           
 
方法摘要
 void addSelectionPaths(TreePath[] paths)
          一个未添加任何内容的 null 实现。
 void removeSelectionPaths(TreePath[] paths)
          一个未移除任何内容的 null 实现。
 void setSelectionPaths(TreePath[] pPaths)
          一个未选择任何内容的 null 实现。
static JTree.EmptySelectionModel sharedInstance()
          返回空选择模型的共享实例。
 
从类 javax.swing.tree.DefaultTreeSelectionModel 继承的方法
addPropertyChangeListener, addSelectionPath, addTreeSelectionListener, 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, removePropertyChangeListener, removeSelectionPath, removeTreeSelectionListener, resetRowSelection, setRowMapper, setSelectionMode, setSelectionPath, toString, updateLeadIndex
 
从类 java.lang.Object 继承的方法
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

sharedInstance

protected static final JTree.EmptySelectionModel sharedInstance
独有的共享实例。

构造方法详细信息

JTree.EmptySelectionModel

protected JTree.EmptySelectionModel()
方法详细信息

sharedInstance

public static JTree.EmptySelectionModel sharedInstance()
返回空选择模型的共享实例。


setSelectionPaths

public void setSelectionPaths(TreePath[] pPaths)
一个未选择任何内容的 null 实现。

指定者:
接口 TreeSelectionModel 中的 setSelectionPaths
覆盖:
DefaultTreeSelectionModel 中的 setSelectionPaths
参数:
pPaths - 新的选择

addSelectionPaths

public void addSelectionPaths(TreePath[] paths)
一个未添加任何内容的 null 实现。

指定者:
接口 TreeSelectionModel 中的 addSelectionPaths
覆盖:
DefaultTreeSelectionModel 中的 addSelectionPaths
参数:
paths - 添加到当前 selection 的新路径

removeSelectionPaths

public void removeSelectionPaths(TreePath[] paths)
一个未移除任何内容的 null 实现。

指定者:
接口 TreeSelectionModel 中的 removeSelectionPaths
覆盖:
DefaultTreeSelectionModel 中的 removeSelectionPaths
参数:
paths - 从 selection 中移除的路径

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only