Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.swing
Class JTree.EmptySelectionModel  view JTree.EmptySelectionModel download JTree.EmptySelectionModel.java

java.lang.Object
  extended byjavax.swing.tree.DefaultTreeSelectionModel
      extended byjavax.swing.JTree.EmptySelectionModel
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable, javax.swing.tree.TreeSelectionModel
Enclosing class:
JTree

protected static class JTree.EmptySelectionModel
extends javax.swing.tree.DefaultTreeSelectionModel

A TreeModel that does not allow anything to be selected.


Field Summary
private static long serialVersionUID
          The serial version UID.
protected static JTree.EmptySelectionModel sharedInstance
          The shared instance of this model.
 
Fields inherited from class javax.swing.tree.DefaultTreeSelectionModel
changeSupport, leadIndex, leadPath, leadRow, listenerList, listSelectionModel, rowMapper, selection, SELECTION_MODE_PROPERTY, selectionMode
 
Fields inherited from interface javax.swing.tree.TreeSelectionModel
CONTIGUOUS_TREE_SELECTION, DISCONTIGUOUS_TREE_SELECTION, SINGLE_TREE_SELECTION
 
Constructor Summary
protected JTree.EmptySelectionModel()
          Creates a new instance of EmptySelectionModel.
 
Method Summary
 void addSelectionPaths(javax.swing.tree.TreePath[] paths)
          This catches attempts to add something to the selection.
 void removeSelectionPaths(javax.swing.tree.TreePath[] paths)
          This catches attempts to remove something from the selection.
 void setSelectionPaths(javax.swing.tree.TreePath[] paths)
          This catches attempts to set a selection and sets nothing instead.
static JTree.EmptySelectionModel sharedInstance()
          Returns the shared instance of EmptySelectionModel.
 
Methods inherited from class 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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
The serial version UID.

See Also:
Constant Field Values

sharedInstance

protected static final JTree.EmptySelectionModel sharedInstance
The shared instance of this model.

Constructor Detail

JTree.EmptySelectionModel

protected JTree.EmptySelectionModel()
Creates a new instance of EmptySelectionModel.

Method Detail

sharedInstance

public static JTree.EmptySelectionModel sharedInstance()
Returns the shared instance of EmptySelectionModel.


setSelectionPaths

public void setSelectionPaths(javax.swing.tree.TreePath[] paths)
This catches attempts to set a selection and sets nothing instead.


addSelectionPaths

public void addSelectionPaths(javax.swing.tree.TreePath[] paths)
This catches attempts to add something to the selection.


removeSelectionPaths

public void removeSelectionPaths(javax.swing.tree.TreePath[] paths)
This catches attempts to remove something from the selection.