T
- parameter typepublic abstract class AbstractParameterConfigurator<T extends Parameter<?>> extends Object implements ParameterConfigurator
Modifier and Type | Field and Description |
---|---|
protected EventListenerList |
listenerList
The event listeners for this parameter.
|
(package private) T |
param
The parameter to configure
|
(package private) JComponent |
parent
The parent container
|
Constructor and Description |
---|
AbstractParameterConfigurator(T param,
JComponent parent)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(ChangeListener listener)
Add a change listener
|
void |
addParameter(Object owner,
Parameter<?> param,
TrackParameters track)
Add a parameter to the panel.
|
void |
appendParameters(ListParameterization params)
Append the parameters to a list.
|
protected void |
finishGridRow()
Complete the current grid row, adding the icon at the end
|
protected void |
fireValueChanged()
Notify listeners of a changed value.
|
abstract Object |
getUserInput()
Get the value given by the user.
|
void |
removeChangeListener(ChangeListener listener)
Remove a change listener
|
final JComponent parent
protected EventListenerList listenerList
public AbstractParameterConfigurator(T param, JComponent parent)
param
- Parameterparent
- Parentprotected void finishGridRow()
public void addParameter(Object owner, Parameter<?> param, TrackParameters track)
ParameterConfigurator
addParameter
in interface ParameterConfigurator
owner
- Owning ("parent") objectparam
- Parametertrack
- Parameter trackerpublic void addChangeListener(ChangeListener listener)
ParameterConfigurator
addChangeListener
in interface ParameterConfigurator
listener
- Change listenerpublic void removeChangeListener(ChangeListener listener)
ParameterConfigurator
removeChangeListener
in interface ParameterConfigurator
listener
- Change listenerprotected void fireValueChanged()
public void appendParameters(ListParameterization params)
ParameterConfigurator
appendParameters
in interface ParameterConfigurator
params
- Parameter list (output)public abstract Object getUserInput()
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.