org.openstreetmap.josm.gui.conflict.pair
Class ListMergeModel.EntriesSelectionModel
java.lang.Object
javax.swing.DefaultListSelectionModel
org.openstreetmap.josm.gui.conflict.pair.ListMergeModel.EntriesSelectionModel
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, javax.swing.ListSelectionModel
- Enclosing class:
- ListMergeModel<T extends PrimitiveId>
protected class ListMergeModel.EntriesSelectionModel
- extends javax.swing.DefaultListSelectionModel
This is the selection model to be used in a JTable
which displays
an entry list managed by ListMergeModel
.
The model ensures that only rows displaying an entry in the entry list
can be selected. "Empty" rows can't be selected.
- See Also:
ListMergeModel.getMySelectionModel()
,
ListMergeModel.getMergedSelectionModel()
,
ListMergeModel.getTheirSelectionModel()
,
Serialized Form
Field Summary |
private java.util.ArrayList<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 |
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 |
entries
private final java.util.ArrayList<T extends PrimitiveId> entries
ListMergeModel.EntriesSelectionModel
public ListMergeModel.EntriesSelectionModel(java.util.ArrayList<T> nodes)
addSelectionInterval
public void addSelectionInterval(int index0,
int index1)
- Specified by:
addSelectionInterval
in interface javax.swing.ListSelectionModel
- Overrides:
addSelectionInterval
in class javax.swing.DefaultListSelectionModel
insertIndexInterval
public void insertIndexInterval(int index,
int length,
boolean before)
- Specified by:
insertIndexInterval
in interface javax.swing.ListSelectionModel
- Overrides:
insertIndexInterval
in class javax.swing.DefaultListSelectionModel
moveLeadSelectionIndex
public void moveLeadSelectionIndex(int leadIndex)
- Overrides:
moveLeadSelectionIndex
in class javax.swing.DefaultListSelectionModel
removeIndexInterval
public void removeIndexInterval(int index0,
int index1)
- Specified by:
removeIndexInterval
in interface javax.swing.ListSelectionModel
- Overrides:
removeIndexInterval
in class javax.swing.DefaultListSelectionModel
removeSelectionInterval
public void removeSelectionInterval(int index0,
int index1)
- Specified by:
removeSelectionInterval
in interface javax.swing.ListSelectionModel
- Overrides:
removeSelectionInterval
in class javax.swing.DefaultListSelectionModel
setAnchorSelectionIndex
public void setAnchorSelectionIndex(int anchorIndex)
- Specified by:
setAnchorSelectionIndex
in interface javax.swing.ListSelectionModel
- Overrides:
setAnchorSelectionIndex
in class javax.swing.DefaultListSelectionModel
setLeadSelectionIndex
public void setLeadSelectionIndex(int leadIndex)
- Specified by:
setLeadSelectionIndex
in interface javax.swing.ListSelectionModel
- Overrides:
setLeadSelectionIndex
in class javax.swing.DefaultListSelectionModel
setSelectionInterval
public void setSelectionInterval(int index0,
int index1)
- Specified by:
setSelectionInterval
in interface javax.swing.ListSelectionModel
- Overrides:
setSelectionInterval
in class javax.swing.DefaultListSelectionModel
JOSM