org.fife.ui
Class RTreeSelectionModel

java.lang.Object
  extended by javax.swing.tree.DefaultTreeSelectionModel
      extended by org.fife.ui.RTreeSelectionModel
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.tree.TreeSelectionModel

public class RTreeSelectionModel
extends javax.swing.tree.DefaultTreeSelectionModel

A wrapper class; this selection model allows only a single selection, and does not allow the user to deselect. This model is useful when the user should be required to have exactly one selection.

Version:
1.0
Author:
Robert Futrell
See Also:
Serialized Form

Field Summary
 
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
RTreeSelectionModel()
           
 
Method Summary
 void removeSelectionPath(javax.swing.tree.TreePath path)
          Overrides DefaultTreeSelectionModel's removeSelectionPath to do nothing, so the user can't "deselect."
 
Methods inherited from class javax.swing.tree.DefaultTreeSelectionModel
addPropertyChangeListener, addSelectionPath, addSelectionPaths, 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, removeSelectionPaths, removeTreeSelectionListener, resetRowSelection, setRowMapper, setSelectionMode, setSelectionPath, setSelectionPaths, toString, updateLeadIndex
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RTreeSelectionModel

public RTreeSelectionModel()
Method Detail

removeSelectionPath

public void removeSelectionPath(javax.swing.tree.TreePath path)
Overrides DefaultTreeSelectionModel's removeSelectionPath to do nothing, so the user can't "deselect."

Specified by:
removeSelectionPath in interface javax.swing.tree.TreeSelectionModel
Overrides:
removeSelectionPath in class javax.swing.tree.DefaultTreeSelectionModel