Module javafx.base

Class PercentageStringConverter

    • Constructor Detail

      • PercentageStringConverter

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

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

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

      • getNumberFormat

        public 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