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.DefaultListSelectionModel
A 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 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
-
-
-
-
Method Detail
-
setValueIsAdjusting
public void setValueIsAdjusting(boolean isAdjusting)
- Specified by:
setValueIsAdjusting
in interfacejavax.swing.ListSelectionModel
- Overrides:
setValueIsAdjusting
in classjavax.swing.DefaultListSelectionModel
-
setSelectionInterval
public void setSelectionInterval(int index0, int index1)
- Specified by:
setSelectionInterval
in interfacejavax.swing.ListSelectionModel
- Overrides:
setSelectionInterval
in classjavax.swing.DefaultListSelectionModel
-
-