de.lmu.ifi.dbs.elki.gui.configurator
Class AbstractParameterConfigurator<T extends Parameter<?,?>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.gui.configurator.AbstractParameterConfigurator<T>
Type Parameters:
T - parameter type
All Implemented Interfaces:
ParameterConfigurator
Direct Known Subclasses:
AbstractSingleParameterConfigurator, FlagParameterConfigurator

public abstract class AbstractParameterConfigurator<T extends Parameter<?,?>>
extends Object
implements ParameterConfigurator

Abstract class to produce a configurator for a particular parameter.


Field Summary
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 Summary
AbstractParameterConfigurator(T param, JComponent parent)
          Constructor.
 
Method Summary
 void addChangeListener(ChangeListener listener)
           
 void addParameter(Object owner, Parameter<?,?> param, TrackParameters track)
           
 void appendParameters(ListParameterization params)
           
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

param

final T extends Parameter<?,?> param
The parameter to configure


parent

final JComponent parent
The parent container


listenerList

protected EventListenerList listenerList
The event listeners for this parameter.

Constructor Detail

AbstractParameterConfigurator

public AbstractParameterConfigurator(T param,
                                     JComponent parent)
Constructor.

Parameters:
param - Parameter
parent - Parent
Method Detail

finishGridRow

protected void finishGridRow()
Complete the current grid row, adding the icon at the end


addParameter

public void addParameter(Object owner,
                         Parameter<?,?> param,
                         TrackParameters track)
Specified by:
addParameter in interface ParameterConfigurator

addChangeListener

public void addChangeListener(ChangeListener listener)
Specified by:
addChangeListener in interface ParameterConfigurator

removeChangeListener

public void removeChangeListener(ChangeListener listener)
Specified by:
removeChangeListener in interface ParameterConfigurator

fireValueChanged

protected void fireValueChanged()
Notify listeners of a changed value.


appendParameters

public void appendParameters(ListParameterization params)
Specified by:
appendParameters in interface ParameterConfigurator

getUserInput

public abstract Object getUserInput()
Get the value given by the user.

Returns:
value for parameter

Release 0.4.0 (2011-09-20_1324)