class MiniGUI.SettingsComboboxModel extends AbstractListModel implements ComboBoxModel
Modifier and Type | Field and Description |
---|---|
protected String |
selected
Selected entry
|
private static long |
serialVersionUID
Serial version
|
protected SavedSettingsFile |
store
Settings storage
|
listenerList
Constructor and Description |
---|
MiniGUI.SettingsComboboxModel(SavedSettingsFile store)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Object |
getElementAt(int index) |
String |
getSelectedItem() |
int |
getSize() |
void |
setSelectedItem(Object anItem) |
void |
update()
Force an update
|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListDataListener, removeListDataListener
private static final long serialVersionUID
protected SavedSettingsFile store
protected String selected
public MiniGUI.SettingsComboboxModel(SavedSettingsFile store)
store
- Store to accesspublic String getSelectedItem()
getSelectedItem
in interface ComboBoxModel
public void setSelectedItem(Object anItem)
setSelectedItem
in interface ComboBoxModel
public Object getElementAt(int index)
getElementAt
in interface ListModel
public void update()