public class ClassListParameterConfigurator extends AbstractSingleParameterConfigurator<ClassListParameter<?>> implements ActionListener, ChangeListener
Modifier and Type | Class and Description |
---|---|
(package private) class |
ClassListParameterConfigurator.SuperPopup |
Modifier and Type | Field and Description |
---|---|
(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
|
label
listenerList, param, parent
Constructor and Description |
---|
ClassListParameterConfigurator(ClassListParameter<?> cp,
JComponent parent) |
Modifier and Type | Method and Description |
---|---|
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) |
addChangeListener, finishGridRow, fireValueChanged, removeChangeListener
final ConfiguratorPanel child
final JPanel panel
final JTextField textfield
final JButton button
final JComboBox combo
final ClassListParameterConfigurator.SuperPopup popup
public ClassListParameterConfigurator(ClassListParameter<?> cp, JComponent parent)
public void addParameter(Object owner, Parameter<?,?> param, TrackParameters track)
addParameter
in interface ParameterConfigurator
addParameter
in class AbstractParameterConfigurator<ClassListParameter<?>>
public 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)
appendParameters
in interface ParameterConfigurator
appendParameters
in class AbstractParameterConfigurator<ClassListParameter<?>>