com.alee.laf.list
Class UnselectableListModel

java.lang.Object
  extended by javax.swing.DefaultListSelectionModel
      extended by com.alee.laf.list.UnselectableListModel
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.ListSelectionModel

public class UnselectableListModel
extends javax.swing.DefaultListSelectionModel

Custom list selection model that disables empty selection.

Author:
Mikle Garin
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
UnselectableListModel()
           
 
Method Summary
 void clearSelection()
          
 void removeSelectionInterval(int index0, int index1)
          
 
Methods inherited from class javax.swing.DefaultListSelectionModel
addListSelectionListener, addSelectionInterval, 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

UnselectableListModel

public UnselectableListModel()
Method Detail

clearSelection

public void clearSelection()

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

removeSelectionInterval

public void removeSelectionInterval(int index0,
                                    int index1)

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