de.lmu.ifi.dbs.elki.gui.multistep.panels
Class SavedSettingsTabPanel.SettingsComboboxModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by de.lmu.ifi.dbs.elki.gui.multistep.panels.SavedSettingsTabPanel.SettingsComboboxModel
All Implemented Interfaces:
Serializable, ComboBoxModel, ListModel
Enclosing class:
SavedSettingsTabPanel

 class SavedSettingsTabPanel.SettingsComboboxModel
extends AbstractListModel
implements ComboBoxModel

Class to interface between the saved settings list and a JComboBox


Field Summary
protected  String selected
          Selected entry
private static long serialVersionUID
          Serial version
protected  SavedSettingsFile store
          Settings storage
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
SavedSettingsTabPanel.SettingsComboboxModel(SavedSettingsFile store)
          Constructor
 
Method Summary
 Object getElementAt(int index)
           
 String getSelectedItem()
           
 int getSize()
           
 void setSelectedItem(Object anItem)
           
 void update()
          Force an update
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.ListModel
addListDataListener, removeListDataListener
 

Field Detail

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

Constructor Detail

SavedSettingsTabPanel.SettingsComboboxModel

public SavedSettingsTabPanel.SettingsComboboxModel(SavedSettingsFile store)
Constructor

Parameters:
store - Store to access
Method Detail

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


Release 0.4.0 (2011-09-20_1324)