Package repast.simphony.ui.parameters
Class AbstractParameterBinder
- java.lang.Object
-
- repast.simphony.ui.parameters.AbstractParameterBinder
-
- All Implemented Interfaces:
ParameterBinder
- Direct Known Subclasses:
BooleanParameterBinder
,DefaultParameterBinder
,FPRangeParameterBinder
,ListParameterBinder
,RangeParameterBinder
,ReadOnlyParameterBinder
public abstract class AbstractParameterBinder extends Object implements ParameterBinder
Abstract implementation of a ParameterBinder, implementing display name and name.- Author:
- Nick Collier
-
-
Constructor Summary
Constructors Constructor Description AbstractParameterBinder(String name, String displayName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getDisplayOrder()
Gets the order of the created component in the display.String
getLabel()
Gets the label for the component created by this CompCreator.String
getName()
Gets the name of the parameter for which this is the binder.void
setDisplayOrder(double val)
Sets the order of the created component in the display.protected String
toXML(Parameters params, String defaultValue, String suffix)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface repast.simphony.ui.parameters.ParameterBinder
getComponent, resetToDefault, toParameter, toXML
-
-
-
-
Method Detail
-
setDisplayOrder
public void setDisplayOrder(double val)
Description copied from interface:ParameterBinder
Sets the order of the created component in the display.- Specified by:
setDisplayOrder
in interfaceParameterBinder
-
getDisplayOrder
public double getDisplayOrder()
Description copied from interface:ParameterBinder
Gets the order of the created component in the display.- Specified by:
getDisplayOrder
in interfaceParameterBinder
-
getName
public String getName()
Description copied from interface:ParameterBinder
Gets the name of the parameter for which this is the binder.- Specified by:
getName
in interfaceParameterBinder
- Returns:
- the name of the parameter for which this is the binder.
-
getLabel
public String getLabel()
Gets the label for the component created by this CompCreator.- Specified by:
getLabel
in interfaceParameterBinder
- Returns:
- the label for the component created by this CompCreator.
-
toXML
protected String toXML(Parameters params, String defaultValue, String suffix)
-
-