Package com.macrofocus.selection.swing
Class SelectionListSelectionModel<E>
- java.lang.Object
-
- javax.swing.DefaultListSelectionModel
-
- com.macrofocus.selection.swing.SelectionListSelectionModel<E>
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,javax.swing.ListSelectionModel
public class SelectionListSelectionModel<E> extends javax.swing.DefaultListSelectionModel
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SelectionListSelectionModel(javax.swing.ListModel model, MutableSelection<E> selection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSelectionInterval(int index0, int index1)
boolean
isSelectedIndex(int index)
void
removeSelectionInterval(int index0, int index1)
void
setSelectionInterval(int index0, int index1)
-
Methods inherited from class javax.swing.DefaultListSelectionModel
addListSelectionListener, clearSelection, clone, fireValueChanged, fireValueChanged, fireValueChanged, getAnchorSelectionIndex, getLeadSelectionIndex, getListeners, getListSelectionListeners, getMaxSelectionIndex, getMinSelectionIndex, getSelectionMode, getValueIsAdjusting, insertIndexInterval, isLeadAnchorNotificationEnabled, isSelectionEmpty, moveLeadSelectionIndex, removeIndexInterval, removeListSelectionListener, setAnchorSelectionIndex, setLeadAnchorNotificationEnabled, setLeadSelectionIndex, setSelectionMode, setValueIsAdjusting, toString
-
-
-
-
Constructor Detail
-
SelectionListSelectionModel
public SelectionListSelectionModel(javax.swing.ListModel model, MutableSelection<E> selection)
-
-
Method Detail
-
isSelectedIndex
public boolean isSelectedIndex(int index)
- Specified by:
isSelectedIndex
in interfacejavax.swing.ListSelectionModel
- Overrides:
isSelectedIndex
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
-
removeSelectionInterval
public void removeSelectionInterval(int index0, int index1)
- Specified by:
removeSelectionInterval
in interfacejavax.swing.ListSelectionModel
- Overrides:
removeSelectionInterval
in classjavax.swing.DefaultListSelectionModel
-
addSelectionInterval
public void addSelectionInterval(int index0, int index1)
- Specified by:
addSelectionInterval
in interfacejavax.swing.ListSelectionModel
- Overrides:
addSelectionInterval
in classjavax.swing.DefaultListSelectionModel
-
-