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

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

public class ClassListParameterConfigurator
extends AbstractSingleParameterConfigurator<ClassListParameter<?>>
implements ActionListener, ChangeListener

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


Nested Class Summary
(package private)  class ClassListParameterConfigurator.SuperPopup
           
 
Field Summary
(package private)  JButton button
          The button to open the file selector
(package private)  ConfiguratorPanel child
           
(package private)  JComboBox combo
          The combobox we are abusing to produce the popup
(package private)  JPanel panel
          We need a panel to put our components on.
(package private)  ClassListParameterConfigurator.SuperPopup popup
          The popup menu.
(package private)  JTextField textfield
          Text field to store the name
 
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
ClassListParameterConfigurator(ClassListParameter<?> cp, JComponent parent)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
          Callback to show the popup menu
 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

child

final ConfiguratorPanel child

panel

final JPanel panel
We need a panel to put our components on.


textfield

final JTextField textfield
Text field to store the name


button

final JButton button
The button to open the file selector


combo

final JComboBox combo
The combobox we are abusing to produce the popup


popup

final ClassListParameterConfigurator.SuperPopup popup
The popup menu.

Constructor Detail

ClassListParameterConfigurator

public ClassListParameterConfigurator(ClassListParameter<?> 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<ClassListParameter<?>>

actionPerformed

public void actionPerformed(ActionEvent e)
Callback to show the popup menu

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<ClassListParameter<?>>
Returns:
value for parameter

appendParameters

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

Release 0.4.0 (2011-09-20_1324)