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 aJTablewhich 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 voidaddSelectionInterval(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, 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:
addSelectionIntervalin interfacejavax.swing.ListSelectionModel- Overrides:
addSelectionIntervalin classjavax.swing.DefaultListSelectionModel
-
insertIndexInterval
public void insertIndexInterval(int index, int length, boolean before)
- Specified by:
insertIndexIntervalin interfacejavax.swing.ListSelectionModel- Overrides:
insertIndexIntervalin classjavax.swing.DefaultListSelectionModel
-
moveLeadSelectionIndex
public void moveLeadSelectionIndex(int leadIndex)
- Overrides:
moveLeadSelectionIndexin classjavax.swing.DefaultListSelectionModel
-
removeIndexInterval
public void removeIndexInterval(int index0, int index1)
- Specified by:
removeIndexIntervalin interfacejavax.swing.ListSelectionModel- Overrides:
removeIndexIntervalin classjavax.swing.DefaultListSelectionModel
-
removeSelectionInterval
public void removeSelectionInterval(int index0, int index1)
- Specified by:
removeSelectionIntervalin interfacejavax.swing.ListSelectionModel- Overrides:
removeSelectionIntervalin classjavax.swing.DefaultListSelectionModel
-
setAnchorSelectionIndex
public void setAnchorSelectionIndex(int anchorIndex)
- Specified by:
setAnchorSelectionIndexin interfacejavax.swing.ListSelectionModel- Overrides:
setAnchorSelectionIndexin classjavax.swing.DefaultListSelectionModel
-
setLeadSelectionIndex
public void setLeadSelectionIndex(int leadIndex)
- Specified by:
setLeadSelectionIndexin interfacejavax.swing.ListSelectionModel- Overrides:
setLeadSelectionIndexin classjavax.swing.DefaultListSelectionModel
-
setSelectionInterval
public void setSelectionInterval(int index0, int index1)
- Specified by:
setSelectionIntervalin interfacejavax.swing.ListSelectionModel- Overrides:
setSelectionIntervalin classjavax.swing.DefaultListSelectionModel
-
-