Package elki.gui.multistep.panels
Class SavedSettingsTabPanel.SettingsComboboxModel
- java.lang.Object
-
- javax.swing.AbstractListModel<java.lang.String>
-
- elki.gui.multistep.panels.SavedSettingsTabPanel.SettingsComboboxModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.ComboBoxModel<java.lang.String>
,javax.swing.ListModel<java.lang.String>
- Enclosing class:
- SavedSettingsTabPanel
class SavedSettingsTabPanel.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 entryprivate static long
serialVersionUID
Serial version
-
Constructor Summary
Constructors Constructor Description SettingsComboboxModel()
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
-
selected
protected java.lang.String selected
Selected entry
-
-
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
-
-