jgnash.ui.util
Class ToggleSelectionModel

java.lang.Object
  extended by javax.swing.DefaultListSelectionModel
      extended by jgnash.ui.util.ToggleSelectionModel
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.ListSelectionModel

public class ToggleSelectionModel
extends javax.swing.DefaultListSelectionModel

Extends the DefaultListSelectionModel to make it easier to select multiple items

Version:
$Id$
Author:
Craig Cavanaugh
See Also:
Serialized Form

Field Summary
private  boolean adjusting
           
private static long serialVersionUID
           
 
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
ToggleSelectionModel()
           
 
Method Summary
 void setSelectionInterval(int index0, int index1)
           
 void setValueIsAdjusting(boolean isAdjusting)
           
 
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, removeSelectionInterval, setAnchorSelectionIndex, setLeadAnchorNotificationEnabled, setLeadSelectionIndex, setSelectionMode, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

adjusting

private boolean adjusting
Constructor Detail

ToggleSelectionModel

public ToggleSelectionModel()
Method Detail

setSelectionInterval

public void setSelectionInterval(int index0,
                                 int index1)
Specified by:
setSelectionInterval in interface javax.swing.ListSelectionModel
Overrides:
setSelectionInterval in class javax.swing.DefaultListSelectionModel

setValueIsAdjusting

public void setValueIsAdjusting(boolean isAdjusting)
Specified by:
setValueIsAdjusting in interface javax.swing.ListSelectionModel
Overrides:
setValueIsAdjusting in class javax.swing.DefaultListSelectionModel