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

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

public class ClassParameterConfigurator
extends AbstractSingleParameterConfigurator<ClassParameter<?>>
implements ActionListener, ChangeListener

Provide a configuration panel to choose a class with the help of a dropdown. Additionally, the classes can in turn have additional parameters.


Field Summary
(package private)  ConfiguratorPanel child
           
(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
ClassParameterConfigurator(ClassParameter<?> cp, JComponent parent)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 void addParameter(Object owner, Parameter<?,?> param, TrackParameters track)
           
 void appendParameters(ListParameterization params)
           
 String getUserInput()
          Get the value given by the user.
 void stateChanged(ChangeEvent e)
           
 
Methods inherited from class de.lmu.ifi.dbs.elki.gui.configurator.AbstractParameterConfigurator
addChangeListener, 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

child

final ConfiguratorPanel child
Constructor Detail

ClassParameterConfigurator

public ClassParameterConfigurator(ClassParameter<?> cp,
                                  JComponent parent)
Method Detail

addParameter

public void addParameter(Object owner,
                         Parameter<?,?> param,
                         TrackParameters track)
Specified by:
addParameter in interface ParameterConfigurator
Overrides:
addParameter in class AbstractParameterConfigurator<ClassParameter<?>>

actionPerformed

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

stateChanged

public void stateChanged(ChangeEvent e)
Specified by:
stateChanged in interface ChangeListener

getUserInput

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

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

appendParameters

public void appendParameters(ListParameterization params)
Specified by:
appendParameters in interface ParameterConfigurator
Overrides:
appendParameters in class AbstractParameterConfigurator<ClassParameter<?>>

Release 0.4.0 (2011-09-20_1324)