public class ClassParameterConfigurator extends AbstractSingleParameterConfigurator<ClassParameter<?>> implements java.awt.event.ActionListener, javax.swing.event.ChangeListener
Modifier and Type | Field and Description |
---|---|
(package private) javax.swing.JButton |
button
The button to open the file selector
|
(package private) ConfiguratorPanel |
child
Configuration panel for child.
|
(package private) javax.swing.JPanel |
panel
We need a panel to put our components on.
|
(package private) TreePopup |
popup
The popup we use.
|
(package private) javax.swing.JTextField |
textfield
Text field to store the name
|
label
listenerList, param, parent
Constructor and Description |
---|
ClassParameterConfigurator(ClassParameter<?> cp,
javax.swing.JComponent parent)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
void |
addParameter(java.lang.Object owner,
Parameter<?> param,
TrackParameters track)
Add a parameter to the panel.
|
void |
appendParameters(ListParameterization params)
Append the parameters to a list.
|
java.lang.String |
getUserInput()
Get the value given by the user.
|
void |
stateChanged(javax.swing.event.ChangeEvent e) |
addChangeListener, finishGridRow, fireValueChanged, removeChangeListener
final javax.swing.JPanel panel
final javax.swing.JTextField textfield
final javax.swing.JButton button
final TreePopup popup
final ConfiguratorPanel child
public ClassParameterConfigurator(ClassParameter<?> cp, javax.swing.JComponent parent)
cp
- Class parameterparent
- Parent component.public void addParameter(java.lang.Object owner, Parameter<?> param, TrackParameters track)
ParameterConfigurator
addParameter
in interface ParameterConfigurator
addParameter
in class AbstractParameterConfigurator<ClassParameter<?>>
owner
- Owning ("parent") objectparam
- Parametertrack
- Parameter trackerpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged
in interface javax.swing.event.ChangeListener
public java.lang.String getUserInput()
AbstractParameterConfigurator
getUserInput
in class AbstractParameterConfigurator<ClassParameter<?>>
public void appendParameters(ListParameterization params)
ParameterConfigurator
appendParameters
in interface ParameterConfigurator
appendParameters
in class AbstractParameterConfigurator<ClassParameter<?>>
params
- Parameter list (output)Copyright © 2019 ELKI Development Team. License information.