
class MiniGUI.SettingsComboboxModel extends AbstractListModel<String> implements ComboBoxModel<String>
| 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 |
|---|---|
String |
getElementAt(int index) |
String |
getSelectedItem() |
int |
getSize() |
void |
setSelectedItem(Object anItem) |
void |
update()
Force an update.
|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListDataListener, removeListDataListenerprivate 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<String>public void setSelectedItem(Object anItem)
setSelectedItem in interface ComboBoxModel<String>public String getElementAt(int index)
getElementAt in interface ListModel<String>public void update()