public class ValueListComboModel extends DefaultComboBoxModel
listenerList
Constructor and Description |
---|
ValueListComboModel() |
ValueListComboModel(ValueList data) |
Modifier and Type | Method and Description |
---|---|
Object |
getElementAt(int index) |
int |
getIndexOf(Object anObject) |
Object |
getSelectedItem() |
int |
getSize() |
void |
setData(ValueList data) |
void |
setSelectedItem(Object anObject) |
addElement, insertElementAt, removeAllElements, removeElement, removeElementAt
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListDataListener, removeListDataListener
public ValueListComboModel()
public ValueListComboModel(ValueList data)
public void setData(ValueList data)
public Object getElementAt(int index)
getElementAt
in interface ListModel
getElementAt
in class DefaultComboBoxModel
public int getIndexOf(Object anObject)
getIndexOf
in class DefaultComboBoxModel
public Object getSelectedItem()
getSelectedItem
in interface ComboBoxModel
getSelectedItem
in class DefaultComboBoxModel
public int getSize()
getSize
in interface ListModel
getSize
in class DefaultComboBoxModel
public void setSelectedItem(Object anObject)
setSelectedItem
in interface ComboBoxModel
setSelectedItem
in class DefaultComboBoxModel
Copyright © 2005–2020. All rights reserved.