Package elki.gui.minigui
Class MiniGUI.SettingsComboboxModel
- java.lang.Object
-
- javax.swing.AbstractListModel<java.lang.String>
-
- elki.gui.minigui.MiniGUI.SettingsComboboxModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.ComboBoxModel<java.lang.String>
,javax.swing.ListModel<java.lang.String>
- Enclosing class:
- MiniGUI
static class MiniGUI.SettingsComboboxModel extends javax.swing.AbstractListModel<java.lang.String> implements javax.swing.ComboBoxModel<java.lang.String>
Class to interface between the saved settings list and a JComboBox.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
selected
Selected entry.private static long
serialVersionUID
Serial version.protected SavedSettingsFile
store
Settings storage.
-
Constructor Summary
Constructors Constructor Description SettingsComboboxModel(SavedSettingsFile store)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getElementAt(int index)
java.lang.String
getSelectedItem()
int
getSize()
void
setSelectedItem(java.lang.Object anItem)
void
update()
Force an update.-
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Serial version.- See Also:
- Constant Field Values
-
store
protected SavedSettingsFile store
Settings storage.
-
selected
protected java.lang.String selected
Selected entry.
-
-
Constructor Detail
-
SettingsComboboxModel
public SettingsComboboxModel(SavedSettingsFile store)
Constructor.- Parameters:
store
- Store to access
-
-
Method Detail
-
getSelectedItem
public java.lang.String getSelectedItem()
- Specified by:
getSelectedItem
in interfacejavax.swing.ComboBoxModel<java.lang.String>
-
setSelectedItem
public void setSelectedItem(java.lang.Object anItem)
- Specified by:
setSelectedItem
in interfacejavax.swing.ComboBoxModel<java.lang.String>
-
getElementAt
public java.lang.String getElementAt(int index)
- Specified by:
getElementAt
in interfacejavax.swing.ListModel<java.lang.String>
-
getSize
public int getSize()
- Specified by:
getSize
in interfacejavax.swing.ListModel<java.lang.String>
-
update
public void update()
Force an update.
-
-