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 voidaddSelectionInterval(int index0, int index1)booleanisSelectedIndex(int index)voidremoveSelectionInterval(int index0, int index1)voidsetSelectionInterval(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:
isSelectedIndexin interfacejavax.swing.ListSelectionModel- Overrides:
isSelectedIndexin classjavax.swing.DefaultListSelectionModel
-
setSelectionInterval
public void setSelectionInterval(int index0, int index1)- Specified by:
setSelectionIntervalin interfacejavax.swing.ListSelectionModel- Overrides:
setSelectionIntervalin classjavax.swing.DefaultListSelectionModel
-
removeSelectionInterval
public void removeSelectionInterval(int index0, int index1)- Specified by:
removeSelectionIntervalin interfacejavax.swing.ListSelectionModel- Overrides:
removeSelectionIntervalin classjavax.swing.DefaultListSelectionModel
-
addSelectionInterval
public void addSelectionInterval(int index0, int index1)- Specified by:
addSelectionIntervalin interfacejavax.swing.ListSelectionModel- Overrides:
addSelectionIntervalin classjavax.swing.DefaultListSelectionModel
-
-