de.lmu.ifi.dbs.elki.gui.minigui
Class MiniGUI.SettingsComboboxModel
java.lang.Object
javax.swing.AbstractListModel
de.lmu.ifi.dbs.elki.gui.minigui.MiniGUI.SettingsComboboxModel
- All Implemented Interfaces:
- Serializable, ComboBoxModel, ListModel
- Enclosing class:
- MiniGUI
class MiniGUI.SettingsComboboxModel
- extends AbstractListModel
- implements ComboBoxModel
Class to interface between the saved settings list and a JComboBox
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- Serial version
- See Also:
- Constant Field Values
store
protected SavedSettingsFile store
- Settings storage
selected
protected String selected
- Selected entry
MiniGUI.SettingsComboboxModel
public MiniGUI.SettingsComboboxModel(SavedSettingsFile store)
- Constructor
- Parameters:
store
- Store to access
getSelectedItem
public String getSelectedItem()
- Specified by:
getSelectedItem
in interface ComboBoxModel
setSelectedItem
public void setSelectedItem(Object anItem)
- Specified by:
setSelectedItem
in interface ComboBoxModel
getElementAt
public Object getElementAt(int index)
- Specified by:
getElementAt
in interface ListModel
getSize
public int getSize()
- Specified by:
getSize
in interface ListModel
update
public void update()
- Force an update