Module javafx.base

Class CurrencyStringConverter

    • Constructor Detail

      • CurrencyStringConverter

        public CurrencyStringConverter()
        Constructs a CurrencyStringConverter with the default locale and format.
      • CurrencyStringConverter

        public CurrencyStringConverter​(Locale locale)
        Constructs a CurrencyStringConverter with the given locale and the default format.
        Parameters:
        locale - the locale used in determining the number format used to format the string
      • CurrencyStringConverter

        public CurrencyStringConverter​(String pattern)
        Constructs a CurrencyStringConverter with the default locale and the given decimal format pattern.
        Parameters:
        pattern - the string pattern used in determining the number format used to format the string
        See Also:
        DecimalFormat
      • CurrencyStringConverter

        public CurrencyStringConverter​(Locale locale,
                                       String pattern)
        Constructs a CurrencyStringConverter with the given locale and decimal format pattern.
        Parameters:
        locale - the locale used in determining the number format used to format the string
        pattern - the string pattern used in determining the number format used to format the string
        See Also:
        DecimalFormat
      • CurrencyStringConverter

        public CurrencyStringConverter​(NumberFormat numberFormat)
        Constructs a CurrencyStringConverter with the given number format.
        Parameters:
        numberFormat - the number format used to format the string
    • Method Detail

      • getNumberFormat

        protected NumberFormat getNumberFormat()
        Returns a NumberFormat instance to use for formatting and parsing in this StringConverter.
        Overrides:
        getNumberFormat in class NumberStringConverter
        Returns:
        a NumberFormat instance for formatting and parsing in this StringConverter