Class AbstractListMergeModel.EntriesSelectionModel
- java.lang.Object
-
- javax.swing.DefaultListSelectionModel
-
- org.openstreetmap.josm.gui.conflict.pair.AbstractListMergeModel.EntriesSelectionModel
-
- All Implemented Interfaces:
Serializable
,Cloneable
,ListSelectionModel
- Enclosing class:
- AbstractListMergeModel<T extends PrimitiveId,C extends ConflictResolveCommand>
protected class AbstractListMergeModel.EntriesSelectionModel extends 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.
-
-
Field Summary
Fields Modifier and Type Field Description private List<T>
entries
-
Fields inherited from class javax.swing.DefaultListSelectionModel
leadAnchorNotificationEnabled, listenerList
-
Fields inherited from interface javax.swing.ListSelectionModel
MULTIPLE_INTERVAL_SELECTION, SINGLE_INTERVAL_SELECTION, SINGLE_SELECTION
-
-
Constructor Summary
Constructors Constructor Description EntriesSelectionModel(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
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.swing.ListSelectionModel
getSelectedIndices, getSelectedItemsCount
-
-
-
-
Field Detail
-
entries
private final transient List<T extends PrimitiveId> entries
-
-
Constructor Detail
-
EntriesSelectionModel
public EntriesSelectionModel(List<T> nodes)
-
-
Method Detail
-
addSelectionInterval
public void addSelectionInterval(int index0, int index1)
- Specified by:
addSelectionInterval
in interfaceListSelectionModel
- Overrides:
addSelectionInterval
in classDefaultListSelectionModel
-
insertIndexInterval
public void insertIndexInterval(int index, int length, boolean before)
- Specified by:
insertIndexInterval
in interfaceListSelectionModel
- Overrides:
insertIndexInterval
in classDefaultListSelectionModel
-
moveLeadSelectionIndex
public void moveLeadSelectionIndex(int leadIndex)
- Overrides:
moveLeadSelectionIndex
in classDefaultListSelectionModel
-
removeIndexInterval
public void removeIndexInterval(int index0, int index1)
- Specified by:
removeIndexInterval
in interfaceListSelectionModel
- Overrides:
removeIndexInterval
in classDefaultListSelectionModel
-
removeSelectionInterval
public void removeSelectionInterval(int index0, int index1)
- Specified by:
removeSelectionInterval
in interfaceListSelectionModel
- Overrides:
removeSelectionInterval
in classDefaultListSelectionModel
-
setAnchorSelectionIndex
public void setAnchorSelectionIndex(int anchorIndex)
- Specified by:
setAnchorSelectionIndex
in interfaceListSelectionModel
- Overrides:
setAnchorSelectionIndex
in classDefaultListSelectionModel
-
setLeadSelectionIndex
public void setLeadSelectionIndex(int leadIndex)
- Specified by:
setLeadSelectionIndex
in interfaceListSelectionModel
- Overrides:
setLeadSelectionIndex
in classDefaultListSelectionModel
-
setSelectionInterval
public void setSelectionInterval(int index0, int index1)
- Specified by:
setSelectionInterval
in interfaceListSelectionModel
- Overrides:
setSelectionInterval
in classDefaultListSelectionModel
-
-