API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing. JTree.EmptySelectionModel View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      DefaultTreeSelectionModel
          JTree.EmptySelectionModel
Implements
Subclasses
Description
protectedstatic class JTree.EmptySelectionModel
  EmptySelectionModel is a TreeSelectionModel that does not allow anything to be selected.
See also:   
Constructors
protected JTree.EmptySelectionModel ()
Methods
Hide/Show inherited methods
publicsynchronized void addPropertyChangeListener (PropertyChangeListener listener) [Inherited From DefaultTreeSelectionModel]
  Adds a PropertyChangeListener to the listener list.
public void addSelectionPath (TreePath path) [Inherited From DefaultTreeSelectionModel]
  Adds path to the current selection.
public void addSelectionPaths (TreePath paths) [Overrides DefaultTreeSelectionModel]
A null implementation that adds nothing.
public void addTreeSelectionListener (TreeSelectionListener x) [Inherited From DefaultTreeSelectionModel]
  Adds x to the list of listeners that are notified each time the set of selected TreePaths changes.
protected boolean arePathsContiguous (TreePath paths) [Inherited From DefaultTreeSelectionModel]
Returns true if the paths are contiguous, or this object has no RowMapper.
protected boolean canPathsBeAdded (TreePath paths) [Inherited From DefaultTreeSelectionModel]
  Used to test if a particular set of TreePaths can be added.
protected boolean canPathsBeRemoved (TreePath paths) [Inherited From DefaultTreeSelectionModel]
  Returns true if the paths can be removed without breaking the continuity of the model.
public void clearSelection () [Inherited From DefaultTreeSelectionModel]
  Empties the current selection.
public Object clone () throws CloneNotSupportedException [Inherited From DefaultTreeSelectionModel]
  Returns a clone of this object with the same selection.
protected void fireValueChanged (TreeSelectionEvent e) [Inherited From DefaultTreeSelectionModel]
  Notifies all listeners that are registered for tree selection events on this object.
public TreePath getLeadSelectionPath () [Inherited From DefaultTreeSelectionModel]
  Returns the last path that was added.
public int getLeadSelectionRow () [Inherited From DefaultTreeSelectionModel]
  Returns the lead selection index.
public T getListeners (Class< T> listenerType) [Inherited From DefaultTreeSelectionModel]
  Returns an array of all the objects currently registered as FooListeners upon this model.
public int getMaxSelectionRow () [Inherited From DefaultTreeSelectionModel]
  Returns the largest value obtained from the RowMapper for the current set of selected TreePaths.
public int getMinSelectionRow () [Inherited From DefaultTreeSelectionModel]
  Returns the smallest value obtained from the RowMapper for the current set of selected TreePaths.
public PropertyChangeListener getPropertyChangeListeners () [Inherited From DefaultTreeSelectionModel]
  Returns an array of all the property change listeners registered on this DefaultTreeSelectionModel.
public RowMapper getRowMapper () [Inherited From DefaultTreeSelectionModel]
Returns the RowMapper instance that is able to map a TreePath to a row.
public int getSelectionCount () [Inherited From DefaultTreeSelectionModel]
Returns the number of paths that are selected.
public int getSelectionMode () [Inherited From DefaultTreeSelectionModel]
Returns the selection mode, one of SINGLE_TREE_SELECTION, DISCONTIGUOUS_TREE_SELECTION or CONTIGUOUS_TREE_SELECTION.
public TreePath getSelectionPath () [Inherited From DefaultTreeSelectionModel]
  Returns the first path in the selection.
public TreePath getSelectionPaths () [Inherited From DefaultTreeSelectionModel]
  Returns the paths in the selection.
public int getSelectionRows () [Inherited From DefaultTreeSelectionModel]
  Returns all of the currently selected rows.
public TreeSelectionListener getTreeSelectionListeners () [Inherited From DefaultTreeSelectionModel]
  Returns an array of all the tree selection listeners registered on this model.
protected void insureRowContinuity () [Inherited From DefaultTreeSelectionModel]
  Makes sure the currently selected TreePaths are valid for the current selection mode.
protected void insureUniqueness () [Inherited From DefaultTreeSelectionModel]
  This method is obsolete and its implementation is now a noop.
public boolean isPathSelected (TreePath path) [Inherited From DefaultTreeSelectionModel]
Returns true if the path, path, is in the current selection.
public boolean isRowSelected (int row) [Inherited From DefaultTreeSelectionModel]
Returns true if the row identified by row is selected.
public boolean isSelectionEmpty () [Inherited From DefaultTreeSelectionModel]
Returns true if the selection is currently empty.
protected void notifyPathChange (Vector<PathPlaceHolder> changedPaths, TreePath oldLeadSelection) [Inherited From DefaultTreeSelectionModel]
  Notifies listeners of a change in path.
publicsynchronized void removePropertyChangeListener (PropertyChangeListener listener) [Inherited From DefaultTreeSelectionModel]
  Removes a PropertyChangeListener from the listener list.
public void removeSelectionPath (TreePath path) [Inherited From DefaultTreeSelectionModel]
  Removes path from the selection.
public void removeSelectionPaths (TreePath paths) [Overrides DefaultTreeSelectionModel]
A null implementation that removes nothing.
public void removeTreeSelectionListener (TreeSelectionListener x) [Inherited From DefaultTreeSelectionModel]
  Removes x from the list of listeners that are notified each time the set of selected TreePaths changes.
public void resetRowSelection () [Inherited From DefaultTreeSelectionModel]
  Updates this object's mapping from TreePath to rows.
public void setRowMapper (RowMapper newMapper) [Inherited From DefaultTreeSelectionModel]
  Sets the RowMapper instance.
public void setSelectionMode (int mode) [Inherited From DefaultTreeSelectionModel]
  Sets the selection model, which must be one of SINGLE_TREE_SELECTION, CONTIGUOUS_TREE_SELECTION or DISCONTIGUOUS_TREE_SELECTION.
public void setSelectionPath (TreePath path) [Inherited From DefaultTreeSelectionModel]
  Sets the selection to path.
public void setSelectionPaths (TreePath pPaths) [Overrides DefaultTreeSelectionModel]
A null implementation that selects nothing.
publicstatic EmptySelectionModel sharedInstance ()
Returns a shared instance of an empty selection model.
public String toString () [Inherited From DefaultTreeSelectionModel]
  Returns a string that displays and identifies this object's properties.
protected void updateLeadIndex () [Inherited From DefaultTreeSelectionModel]
Updates the leadIndex instance variable.
Fields
Hide/Show inherited fields
protected SwingPropertyChangeSupport changeSupport [Inherited From DefaultTreeSelectionModel]
Used to messaged registered listeners.
protected int leadIndex [Inherited From DefaultTreeSelectionModel]
Index of the lead path in selection.
protected TreePath leadPath [Inherited From DefaultTreeSelectionModel]
Last path that was added.
protected int leadRow [Inherited From DefaultTreeSelectionModel]
Lead row.
protected EventListenerList listenerList [Inherited From DefaultTreeSelectionModel]
Event listener list.
protected DefaultListSelectionModel listSelectionModel [Inherited From DefaultTreeSelectionModel]
  Handles maintaining the list selection model.
protectedtransient RowMapper rowMapper [Inherited From DefaultTreeSelectionModel]
Provides a row for a given path.
protected TreePath selection [Inherited From DefaultTreeSelectionModel]
  Paths that are currently selected.
publicfinalstatic String SELECTION_MODE_PROPERTY = "selectionMode" [Inherited From DefaultTreeSelectionModel]
Property name for selectionMode.
protected int selectionMode [Inherited From DefaultTreeSelectionModel]
Mode for the selection, will be either SINGLE_TREE_SELECTION, CONTIGUOUS_TREE_SELECTION or DISCONTIGUOUS_TREE_SELECTION.
protectedfinalstatic EmptySelectionModel sharedInstance
Unique shared instance.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar