Class AbstractListMergeModel.ComparePairListModel
java.lang.Object
javax.swing.AbstractListModel<E>
org.openstreetmap.josm.gui.widgets.JosmComboBoxModel<ComparePairType>
org.openstreetmap.josm.gui.conflict.pair.AbstractListMergeModel.ComparePairListModel
- All Implemented Interfaces:
Serializable,Iterable<ComparePairType>,ComboBoxModel<ComparePairType>,ListModel<ComparePairType>,MutableComboBoxModel<ComparePairType>
- Enclosing class:
- AbstractListMergeModel<T extends PrimitiveId,
C extends ConflictResolveCommand>
A model for
ComparePairType with the enums added as options.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openstreetmap.josm.gui.widgets.JosmComboBoxModel
JosmComboBoxModel.Preferences -
Field Summary
FieldsFields inherited from class org.openstreetmap.josm.gui.widgets.JosmComboBoxModel
elements, selectedFields inherited from class javax.swing.AbstractListModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetElementAt(int index) intgetSize()voidsetSelectedItem(Object anItem) Set the value of the selected item.Methods inherited from class org.openstreetmap.josm.gui.widgets.JosmComboBoxModel
addAllElements, addAllElements, addElement, addTopElement, asCollection, doAddElement, find, getIndexOf, insertElementAt, iterator, prefs, removeAllElements, removeElement, removeElementAt, setSizeMethods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface javax.swing.ListModel
addListDataListener, removeListDataListener
-
Field Details
-
selectedIdx
-
compareModes
-
-
Constructor Details
-
ComparePairListModel
public ComparePairListModel()Constructs a newComparePairListModel.
-
-
Method Details
-
getElementAt
- Specified by:
getElementAtin interfaceListModel<ComparePairType>- Overrides:
getElementAtin classJosmComboBoxModel<ComparePairType>
-
getSize
- Specified by:
getSizein interfaceListModel<ComparePairType>- Overrides:
getSizein classJosmComboBoxModel<ComparePairType>
-
getSelectedItem
- Specified by:
getSelectedItemin interfaceComboBoxModel<ComparePairType>- Overrides:
getSelectedItemin classJosmComboBoxModel<ComparePairType>
-
setSelectedItem
Description copied from class:JosmComboBoxModelSet the value of the selected item. The selected item may be null.- Specified by:
setSelectedItemin interfaceComboBoxModel<ComparePairType>- Overrides:
setSelectedItemin classJosmComboBoxModel<ComparePairType>- Parameters:
anItem- The combo box value or null for no selection.
-
getSelectedComparePair
-