org.fife.ui
Class RListSelectionModel

java.lang.Object
  extended by javax.swing.DefaultListSelectionModel
      extended by org.fife.ui.RListSelectionModel
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.ListSelectionModel

public class RListSelectionModel
extends javax.swing.DefaultListSelectionModel

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.DefaultListSelectionModel
leadAnchorNotificationEnabled, listenerList
 
Fields inherited from interface javax.swing.ListSelectionModel
MULTIPLE_INTERVAL_SELECTION, SINGLE_INTERVAL_SELECTION, SINGLE_SELECTION
 
Constructor Summary
RListSelectionModel()
          Constructor.
 
Method Summary
 void removeSelectionInterval(int index0, int index1)
          Remove the indices in the interval index0,index1 (inclusive) from the selection model.
 
Methods inherited from class javax.swing.DefaultListSelectionModel
addListSelectionListener, addSelectionInterval, clearSelection, clone, fireValueChanged, fireValueChanged, fireValueChanged, getAnchorSelectionIndex, getLeadSelectionIndex, getListeners, getListSelectionListeners, getMaxSelectionIndex, getMinSelectionIndex, getSelectionMode, getValueIsAdjusting, insertIndexInterval, isLeadAnchorNotificationEnabled, isSelectedIndex, isSelectionEmpty, moveLeadSelectionIndex, removeIndexInterval, removeListSelectionListener, setAnchorSelectionIndex, setLeadAnchorNotificationEnabled, setLeadSelectionIndex, setSelectionInterval, setSelectionMode, setValueIsAdjusting, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RListSelectionModel

public RListSelectionModel()
Constructor.

Method Detail

removeSelectionInterval

public void removeSelectionInterval(int index0,
                                    int index1)
Remove the indices in the interval index0,index1 (inclusive) from the selection model. This will be called when the user Ctrl+clicks, for example. We don't want them to be able to have nothing selected in our list, so this method simply does nothing.

Specified by:
removeSelectionInterval in interface javax.swing.ListSelectionModel
Overrides:
removeSelectionInterval in class javax.swing.DefaultListSelectionModel