de.lmu.ifi.dbs.elki.gui.configurator
Class EnumParameterConfigurator

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.gui.configurator.AbstractParameterConfigurator<T>
      extended by de.lmu.ifi.dbs.elki.gui.configurator.AbstractSingleParameterConfigurator<EnumParameter<?>>
          extended by de.lmu.ifi.dbs.elki.gui.configurator.EnumParameterConfigurator
All Implemented Interfaces:
ParameterConfigurator, ActionListener, EventListener

public class EnumParameterConfigurator
extends AbstractSingleParameterConfigurator<EnumParameter<?>>
implements ActionListener

Panel to configure EnumParameters by offering a dropdown to choose from. TODO: offer radio buttons when just a few choices are available?


Field Summary
(package private)  JComboBox value
           
 
Fields inherited from class de.lmu.ifi.dbs.elki.gui.configurator.AbstractSingleParameterConfigurator
label
 
Fields inherited from class de.lmu.ifi.dbs.elki.gui.configurator.AbstractParameterConfigurator
listenerList, param, parent
 
Constructor Summary
EnumParameterConfigurator(EnumParameter<?> cp, JComponent parent)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 String getUserInput()
          Get the value given by the user.
 
Methods inherited from class de.lmu.ifi.dbs.elki.gui.configurator.AbstractParameterConfigurator
addChangeListener, addParameter, appendParameters, finishGridRow, fireValueChanged, removeChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

final JComboBox value
Constructor Detail

EnumParameterConfigurator

public EnumParameterConfigurator(EnumParameter<?> cp,
                                 JComponent parent)
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener

getUserInput

public String getUserInput()
Description copied from class: AbstractParameterConfigurator
Get the value given by the user.

Specified by:
getUserInput in class AbstractParameterConfigurator<EnumParameter<?>>
Returns:
value for parameter

Release 0.4.0 (2011-09-20_1324)