public class ClassListParameterConfigurator extends AbstractSingleParameterConfigurator<ClassListParameter<?>> implements ActionListener, ChangeListener
Modifier and Type | Field and Description |
---|---|
(package private) JButton |
button
The button to open the file selector
|
(package private) ConfiguratorPanel |
child
Configurator for children
|
(package private) JPanel |
panel
We need a panel to put our components on.
|
(package private) TreePopup |
popup
The popup we use.
|
(package private) JTextField |
textfield
Text field to store the name
|
label
listenerList, param, parent
Constructor and Description |
---|
ClassListParameterConfigurator(ClassListParameter<?> cp,
JComponent parent)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
Callback to show the popup menu
|
void |
addParameter(Object owner,
Parameter<?> param,
TrackParameters track)
Add a parameter to the panel.
|
void |
appendParameters(ListParameterization params)
Append the parameters to a list.
|
String |
getUserInput()
Get the value given by the user.
|
void |
stateChanged(ChangeEvent e) |
addChangeListener, finishGridRow, fireValueChanged, removeChangeListener
final ConfiguratorPanel child
final JPanel panel
final JTextField textfield
final JButton button
final TreePopup popup
public ClassListParameterConfigurator(ClassListParameter<?> cp, JComponent parent)
cp
- Class list parameterparent
- Parent componentpublic void addParameter(Object owner, Parameter<?> param, TrackParameters track)
ParameterConfigurator
addParameter
in interface ParameterConfigurator
addParameter
in class AbstractParameterConfigurator<ClassListParameter<?>>
owner
- Owning ("parent") objectparam
- Parametertrack
- Parameter trackerpublic void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void stateChanged(ChangeEvent e)
stateChanged
in interface ChangeListener
public String getUserInput()
AbstractParameterConfigurator
getUserInput
in class AbstractParameterConfigurator<ClassListParameter<?>>
public void appendParameters(ListParameterization params)
ParameterConfigurator
appendParameters
in interface ParameterConfigurator
appendParameters
in class AbstractParameterConfigurator<ClassListParameter<?>>
params
- Parameter list (output)Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.