Class NumberArgument

All Implemented Interfaces:
Serializable, ListModel

public class NumberArgument extends Argument
Represents an argument that expects a numeric value.

Provides support for specifying a minimum and/or a maximum allowed value

See Also:
  • Field Details

    • PROPERTY_NUMBER_VALUE

      public static final String PROPERTY_NUMBER_VALUE
      The property name for the argument's numeric value.
      See Also:
  • Constructor Details

  • Method Details

    • getMin

      public Double getMin()
    • setMin

      public void setMin(Double min)
    • getMax

      public Double getMax()
    • setMax

      public void setMax(Double max)
    • setValue

      public void setValue(Object value)
      Overrides:
      setValue in class Argument
    • getNumberValue

      public Number getNumberValue()
    • setNumberValue

      public void setNumberValue(Number value)
    • parseValue

      protected Object parseValue(String val)
      Overrides:
      parseValue in class Argument
    • getValueTextFieldMinWidth

      public int getValueTextFieldMinWidth()
      The minium width of a text field for the argument value. Used for example if the argument belongs to a group.
      Returns:
      the minium width of a text field for the argument value
    • setValueTextFieldMinWidth

      public void setValueTextFieldMinWidth(int valueTextFieldMinWidth)
      Set the minium width of a text field for the argument value. Used for example if the argument belongs to a group.
      Parameters:
      valueTextFieldMinWidth - the width value to set
    • getMinTextFieldMinWidth

      public int getMinTextFieldMinWidth()
      Get the minium width of a text field for the argument minimum value. Used for example if the argument belongs to a group.
      Returns:
      the minium width of a text field for the argument minimum value
    • setMinTextFieldMinWidth

      public void setMinTextFieldMinWidth(int minTextFieldMinWidth)
      Set the minium width of a text field for the argument minimum value. Used for example if the argument belongs to a group.
      Parameters:
      minTextFieldMinWidth - the width to set
    • getMaxTextFieldMinWidth

      public int getMaxTextFieldMinWidth()
      Get the minium width of a text field for the argument maximum value. Used for example if the argument belongs to a group.
      Returns:
      the minium width of a text field for the argument maximum value
    • setMaxTextFieldMinWidth

      public void setMaxTextFieldMinWidth(int maxTextFieldMinWidth)
      Set the minium width of a text field for the argument maximum value. Used for example if the argument belongs to a group.
      Parameters:
      maxTextFieldMinWidth - the width to set
    • copyArgument

      public NumberArgument copyArgument()
      Description copied from class: Argument
      Make a copy of the argument.
      Specified by:
      copyArgument in class Argument
      Returns:
      the argument copy