Package elki.gui.configurator
Class TextParameterConfigurator
- java.lang.Object
-
- elki.gui.configurator.AbstractParameterConfigurator<T>
-
- elki.gui.configurator.AbstractSingleParameterConfigurator<Parameter<?>>
-
- elki.gui.configurator.TextParameterConfigurator
-
- All Implemented Interfaces:
ParameterConfigurator
,java.awt.event.ActionListener
,java.util.EventListener
public class TextParameterConfigurator extends AbstractSingleParameterConfigurator<Parameter<?>> implements java.awt.event.ActionListener
Provide a configuration panel to input an arbitrary text parameter.- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description (package private) javax.swing.JTextField
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 TextParameterConfigurator(Parameter<?> param, 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
-
TextParameterConfigurator
public TextParameterConfigurator(Parameter<?> param, 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<Parameter<?>>
- Returns:
- value for parameter
-
-