T
- parameter typepublic abstract class AbstractParameterConfigurator<T extends Parameter<?>> extends java.lang.Object implements ParameterConfigurator
Modifier and Type | Field and Description |
---|---|
protected javax.swing.event.EventListenerList |
listenerList
The event listeners for this parameter.
|
(package private) T |
param
The parameter to configure
|
(package private) javax.swing.JComponent |
parent
The parent container
|
Constructor and Description |
---|
AbstractParameterConfigurator(T param,
javax.swing.JComponent parent)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(javax.swing.event.ChangeListener listener)
Add a change listener
|
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.
|
protected void |
finishGridRow()
Complete the current grid row, adding the icon at the end
|
protected void |
fireValueChanged()
Notify listeners of a changed value.
|
abstract java.lang.Object |
getUserInput()
Get the value given by the user.
|
void |
removeChangeListener(javax.swing.event.ChangeListener listener)
Remove a change listener
|
final javax.swing.JComponent parent
protected javax.swing.event.EventListenerList listenerList
public AbstractParameterConfigurator(T param, javax.swing.JComponent parent)
param
- Parameterparent
- Parentprotected void finishGridRow()
public void addParameter(java.lang.Object owner, Parameter<?> param, TrackParameters track)
ParameterConfigurator
addParameter
in interface ParameterConfigurator
owner
- Owning ("parent") objectparam
- Parametertrack
- Parameter trackerpublic void addChangeListener(javax.swing.event.ChangeListener listener)
ParameterConfigurator
addChangeListener
in interface ParameterConfigurator
listener
- Change listenerpublic void removeChangeListener(javax.swing.event.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 java.lang.Object getUserInput()
Copyright © 2019 ELKI Development Team. License information.