Class AbstractListMergeModel.EntriesSelectionModel
- java.lang.Object
-
- javax.swing.DefaultListSelectionModel
-
- org.openstreetmap.josm.gui.conflict.pair.AbstractListMergeModel.EntriesSelectionModel
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,javax.swing.ListSelectionModel
- Enclosing class:
- AbstractListMergeModel<T extends PrimitiveId,C extends ConflictResolveCommand>
protected class AbstractListMergeModel.EntriesSelectionModel extends javax.swing.DefaultListSelectionModel
This is the selection model to be used in aJTable
which displays an entry list managed byAbstractListMergeModel
.The model ensures that only rows displaying an entry in the entry list can be selected. "Empty" rows can't be selected.
-
-
Constructor Summary
Constructors Constructor Description EntriesSelectionModel(java.util.List<T> nodes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSelectionInterval(int index0, int index1)
void
insertIndexInterval(int index, int length, boolean before)
void
moveLeadSelectionIndex(int leadIndex)
void
removeIndexInterval(int index0, int index1)
void
removeSelectionInterval(int index0, int index1)
void
setAnchorSelectionIndex(int anchorIndex)
void
setLeadSelectionIndex(int leadIndex)
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, isLeadAnchorNotificationEnabled, isSelectedIndex, isSelectionEmpty, removeListSelectionListener, setLeadAnchorNotificationEnabled, setSelectionMode, setValueIsAdjusting, toString
-
-
-
-
Field Detail
-
entries
private final transient java.util.List<T extends PrimitiveId> entries
-
-
Constructor Detail
-
EntriesSelectionModel
public EntriesSelectionModel(java.util.List<T> nodes)
-
-
Method Detail
-
addSelectionInterval
public void addSelectionInterval(int index0, int index1)
- Specified by:
addSelectionInterval
in interfacejavax.swing.ListSelectionModel
- Overrides:
addSelectionInterval
in classjavax.swing.DefaultListSelectionModel
-
insertIndexInterval
public void insertIndexInterval(int index, int length, boolean before)
- Specified by:
insertIndexInterval
in interfacejavax.swing.ListSelectionModel
- Overrides:
insertIndexInterval
in classjavax.swing.DefaultListSelectionModel
-
moveLeadSelectionIndex
public void moveLeadSelectionIndex(int leadIndex)
- Overrides:
moveLeadSelectionIndex
in classjavax.swing.DefaultListSelectionModel
-
removeIndexInterval
public void removeIndexInterval(int index0, int index1)
- Specified by:
removeIndexInterval
in interfacejavax.swing.ListSelectionModel
- Overrides:
removeIndexInterval
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
-
setAnchorSelectionIndex
public void setAnchorSelectionIndex(int anchorIndex)
- Specified by:
setAnchorSelectionIndex
in interfacejavax.swing.ListSelectionModel
- Overrides:
setAnchorSelectionIndex
in classjavax.swing.DefaultListSelectionModel
-
setLeadSelectionIndex
public void setLeadSelectionIndex(int leadIndex)
- Specified by:
setLeadSelectionIndex
in interfacejavax.swing.ListSelectionModel
- Overrides:
setLeadSelectionIndex
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
-
-