All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class DecimalFormatPanel extends DecimalFormatPanelView
A panel to select the format for a decimal number. The following options are offered:
  • The decimal separator character
  • The thousands separator character
  • The number of decimal digits. Note that this component forces the maximum and minimum number of decimal digits (as defined in DecimalFormat) to be always equal.
Author:
Cesar Martinez Izquierdo
See Also:
  • Field Details

  • Constructor Details

    • DecimalFormatPanel

      public DecimalFormatPanel()
      Creates and initializes the panel using the default format for the current locale
    • DecimalFormatPanel

      public DecimalFormatPanel(FFrameGridCoordinateFormat format)
      Creates and initializes the panel using the provided DecimalFormat
      Parameters:
      format -
    • DecimalFormatPanel

      public DecimalFormatPanel(char decimalSeparator, char thousandsSeparator, int decimalDigits, String basePattern)
      Creates and initializes the panel using the provided parameters
      Parameters:
      decimalSeparator - The character used to separate the decimal part
      thousandsSeparator - The character used to group thousands
      decimalDigits - The number of decimal digits to show
      basePattern - A base pattern used to create the DecimalFormat. Usually, one of INTEGER_BASE_PATTERN, INTEGER_GROUPED_BASE_PATTERN, DECIMAL_BASE_PATTERN or DECIMAL_GROUPED_BASE_PATTERN. Any decimal digits in the pattern will be ignored (as they will be included depending on the decimalDigits parameter). The behavior of the component is undefined if a wrong pattern is provided
      See Also:
  • Method Details