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>
This is the selection model to be used in a
JTable which displays
an entry list managed by AbstractListMergeModel.
The model ensures that only rows displaying an entry in the entry list can be selected. "Empty" rows can't be selected.
-
Field Summary
FieldsFields inherited from class javax.swing.DefaultListSelectionModel
leadAnchorNotificationEnabled, listenerListFields inherited from interface javax.swing.ListSelectionModel
MULTIPLE_INTERVAL_SELECTION, SINGLE_INTERVAL_SELECTION, SINGLE_SELECTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSelectionInterval(int index0, int index1) voidinsertIndexInterval(int index, int length, boolean before) voidmoveLeadSelectionIndex(int leadIndex) voidremoveIndexInterval(int index0, int index1) voidremoveSelectionInterval(int index0, int index1) voidsetAnchorSelectionIndex(int anchorIndex) voidsetLeadSelectionIndex(int leadIndex) 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, isLeadAnchorNotificationEnabled, isSelectedIndex, isSelectionEmpty, removeListSelectionListener, setLeadAnchorNotificationEnabled, setSelectionMode, setValueIsAdjusting, toStringMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.swing.ListSelectionModel
getSelectedIndices, getSelectedItemsCount
-
Field Details
-
entries
-
-
Constructor Details
-
EntriesSelectionModel
-
-
Method Details
-
addSelectionInterval
- Specified by:
addSelectionIntervalin interfaceListSelectionModel- Overrides:
addSelectionIntervalin classDefaultListSelectionModel
-
insertIndexInterval
- Specified by:
insertIndexIntervalin interfaceListSelectionModel- Overrides:
insertIndexIntervalin classDefaultListSelectionModel
-
moveLeadSelectionIndex
- Overrides:
moveLeadSelectionIndexin classDefaultListSelectionModel
-
removeIndexInterval
- Specified by:
removeIndexIntervalin interfaceListSelectionModel- Overrides:
removeIndexIntervalin classDefaultListSelectionModel
-
removeSelectionInterval
- Specified by:
removeSelectionIntervalin interfaceListSelectionModel- Overrides:
removeSelectionIntervalin classDefaultListSelectionModel
-
setAnchorSelectionIndex
- Specified by:
setAnchorSelectionIndexin interfaceListSelectionModel- Overrides:
setAnchorSelectionIndexin classDefaultListSelectionModel
-
setLeadSelectionIndex
- Specified by:
setLeadSelectionIndexin interfaceListSelectionModel- Overrides:
setLeadSelectionIndexin classDefaultListSelectionModel
-
setSelectionInterval
- Specified by:
setSelectionIntervalin interfaceListSelectionModel- Overrides:
setSelectionIntervalin classDefaultListSelectionModel
-