public class ListMergeModel.ComparePairListModel extends AbstractListModel<ComparePairType> implements ComboBoxModel<ComparePairType>
Modifier and Type | Field and Description |
---|---|
private List<ComparePairType> |
compareModes |
private int |
selectedIdx |
listenerList
Constructor and Description |
---|
ComparePairListModel()
Constructs a new
ComparePairListModel . |
Modifier and Type | Method and Description |
---|---|
ComparePairType |
getElementAt(int index) |
ComparePairType |
getSelectedComparePair() |
Object |
getSelectedItem() |
int |
getSize() |
void |
setSelectedItem(Object anItem) |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListDataListener, removeListDataListener
private int selectedIdx
private final List<ComparePairType> compareModes
public ComparePairListModel()
ComparePairListModel
.public ComparePairType getElementAt(int index)
getElementAt
in interface ListModel<ComparePairType>
public int getSize()
getSize
in interface ListModel<ComparePairType>
public Object getSelectedItem()
getSelectedItem
in interface ComboBoxModel<ComparePairType>
public void setSelectedItem(Object anItem)
setSelectedItem
in interface ComboBoxModel<ComparePairType>
public ComparePairType getSelectedComparePair()