public class StaticTextComboBoxModel extends AbstractListModel implements ComboBoxModel
Constructor and Description |
---|
StaticTextComboBoxModel() |
Modifier and Type | Method and Description |
---|---|
Object |
getElementAt(int index) |
Object |
getSelectedItem() |
int |
getSize() |
void |
setSelectedItem(Object anItem) |
void |
setValues(String[] values) |
addListDataListener, getListDataListeners, getListeners, removeListDataListener
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListDataListener, removeListDataListener
public void setValues(String[] values)
public Object getElementAt(int index)
getElementAt
in interface ListModel
public void setSelectedItem(Object anItem)
setSelectedItem
in interface ComboBoxModel
public Object getSelectedItem()
getSelectedItem
in interface ComboBoxModel