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
  • Field Details

    • name

      protected String name
    • displayName

      protected String displayName
    • params

      protected Parameters params
    • order

      protected double order
    • typeMap

      protected static Map<Class<?>,String> typeMap
  • Constructor Details

    • AbstractParameterBinder

      public AbstractParameterBinder(String name, String displayName)
      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 interface ParameterBinder
    • getDisplayOrder

      public double getDisplayOrder()
      Description copied from interface: ParameterBinder
      Gets the order of the created component in the display.
      Specified by:
      getDisplayOrder in interface ParameterBinder
    • 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 interface ParameterBinder
      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 interface ParameterBinder
      Returns:
      the label for the component created by this CompCreator.
    • toXML

      protected String toXML(Parameters params, String defaultValue, String suffix)