Class FormattedNumberOption

All Implemented Interfaces:
Serializable, Option, OptionElement, OptionProperties

public class FormattedNumberOption extends AbstractOption
Option class for numbers formatted using a pattern, as defined in class DecimalFormat.
Author:
Laurent Cohen
See Also:
  • Field Details

    • fieldLabel

      protected JLabel fieldLabel
      Label associated with the formatted field.
    • pattern

      protected String pattern
      The pattern that defines the field format.
  • Constructor Details

    • FormattedNumberOption

      public FormattedNumberOption()
      Constructor provided as a convenience to facilitate the creation of option elements through reflexion.
    • FormattedNumberOption

      public FormattedNumberOption(String name, String label, String tooltip, Number value, String pattern)
      Initialize this text option with the specified parameters.
      Parameters:
      name - this component's name.
      label - the label displayed with the text field.
      tooltip - the tooltip associated with the text field.
      value - the initial value of this component.
      pattern - the pattern defining the format of the number used as value.
      See Also:
  • Method Details