Package ca.cgjennings.ui
Class ToggleSelectionModel
- java.lang.Object
-
- javax.swing.DefaultListSelectionModel
-
- ca.cgjennings.ui.ToggleSelectionModel
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,javax.swing.ListSelectionModel
public class ToggleSelectionModel extends javax.swing.DefaultListSelectionModelA list selection model that toggles selection states instead of setting or clearing them.- Author:
- Chris Jennings
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ToggleSelectionModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetSelectionInterval(int index0, int index1)voidsetValueIsAdjusting(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
-
-
-
-
Method Detail
-
setValueIsAdjusting
public void setValueIsAdjusting(boolean isAdjusting)
- Specified by:
setValueIsAdjustingin interfacejavax.swing.ListSelectionModel- Overrides:
setValueIsAdjustingin classjavax.swing.DefaultListSelectionModel
-
setSelectionInterval
public void setSelectionInterval(int index0, int index1)- Specified by:
setSelectionIntervalin interfacejavax.swing.ListSelectionModel- Overrides:
setSelectionIntervalin classjavax.swing.DefaultListSelectionModel
-
-