Class DefaultParameterBinder

java.lang.Object
repast.simphony.ui.parameters.AbstractParameterBinder
repast.simphony.ui.parameters.DefaultParameterBinder
All Implemented Interfaces:
ParameterBinder
Direct Known Subclasses:
RandomSeedParameterBinder

public class DefaultParameterBinder extends AbstractParameterBinder
ParameterBinder for single unconstrained parameters.
Author:
Nick Collier
  • Field Details

  • Constructor Details

    • DefaultParameterBinder

      public DefaultParameterBinder(String name, String displayName, Class<?> type)
  • Method Details

    • getComponent

      public JComponent getComponent(Parameters params)
      Description copied from interface: ParameterBinder
      Creates a JComponent for a parameter in the parameters.
      Returns:
      the created JComponent.
    • resetToDefault

      public void resetToDefault()
      Description copied from interface: ParameterBinder
      Resets the JComponent to the default value of its parameter.
    • toParameter

      public void toParameter()
      Description copied from interface: ParameterBinder
      Updates the parameter that this is a binder for with the latest value from the created component.
    • toXML

      public String toXML()
      Description copied from interface: ParameterBinder
      Gets the parameter xml representation of this ParameterBinder.
      Returns:
      the parameter xml representation of this ParameterBinder.