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
Abstract implementation of a ParameterBinder, implementing display name and
name.
- Author:
- Nick Collier
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Gets the order of the created component in the display.getLabel()
Gets the label for the component created by this CompCreator.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
-
Field Details
-
name
-
displayName
-
params
-
order
protected double order -
typeMap
-
-
Constructor Details
-
AbstractParameterBinder
- Parameters:
name
-displayName
-
-
-
Method Details
-
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
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
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
-