Package elki.gui.configurator
Class EnumParameterConfigurator
- java.lang.Object
-
- elki.gui.configurator.AbstractParameterConfigurator<T>
-
- elki.gui.configurator.AbstractSingleParameterConfigurator<EnumParameter<?>>
-
- elki.gui.configurator.EnumParameterConfigurator
-
- All Implemented Interfaces:
ParameterConfigurator
,java.awt.event.ActionListener
,java.util.EventListener
public class EnumParameterConfigurator extends AbstractSingleParameterConfigurator<EnumParameter<?>> implements java.awt.event.ActionListener
Panel to configure EnumParameters by offering a dropdown to choose from.TODO: offer radio buttons when just a few choices are available?
- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description (package private) javax.swing.JComboBox<java.lang.String>
value
-
Fields inherited from class elki.gui.configurator.AbstractSingleParameterConfigurator
label
-
Fields inherited from class elki.gui.configurator.AbstractParameterConfigurator
listenerList, param, parent
-
-
Constructor Summary
Constructors Constructor Description EnumParameterConfigurator(EnumParameter<?> cp, javax.swing.JComponent parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
java.lang.String
getUserInput()
Get the value given by the user.-
Methods inherited from class elki.gui.configurator.AbstractParameterConfigurator
addChangeListener, addParameter, appendParameters, finishGridRow, fireValueChanged, removeChangeListener
-
-
-
-
Constructor Detail
-
EnumParameterConfigurator
public EnumParameterConfigurator(EnumParameter<?> cp, javax.swing.JComponent parent)
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
-
getUserInput
public java.lang.String getUserInput()
Description copied from class:AbstractParameterConfigurator
Get the value given by the user.- Specified by:
getUserInput
in classAbstractParameterConfigurator<EnumParameter<?>>
- Returns:
- value for parameter
-
-