Class PercentageStringConverter


public class PercentageStringConverter extends NumberStringConverter
A StringConverter implementation for Number values that represent percentages.
Since:
JavaFX 2.1
  • Constructor Details

    • PercentageStringConverter

      public PercentageStringConverter()
      Creates a PercentageStringConverter that uses a formatter/parser based on the user's Locale.
    • PercentageStringConverter

      public PercentageStringConverter(Locale locale)
      Creates a PercentageStringConverter that uses a formatter/parser based on the given locale.
      Parameters:
      locale - the Locale that will be used by the formatter/parser. If null, the user's locale will be used.
    • PercentageStringConverter

      public PercentageStringConverter(NumberFormat numberFormat)
      Creates a PercentageStringConverter that uses the given formatter/parser.
      Parameters:
      numberFormat - the formatter/parser that will be used by the toString() and fromString() methods. If null, a default formatter/parser will be used.