Class CurrencyStringConverter


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

    • CurrencyStringConverter

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

      public CurrencyStringConverter(Locale locale)
      Creates a CurrencyStringConverter 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.
    • CurrencyStringConverter

      public CurrencyStringConverter(String pattern)
      Creates a CurrencyStringConverter that uses a formatter/parser based on the user's Locale and the given decimal format pattern.
      Parameters:
      pattern - the pattern describing the number format. If null, a default formatter/parser will be used.
      See Also:
    • CurrencyStringConverter

      public CurrencyStringConverter(Locale locale, String pattern)
      Creates a CurrencyStringConverter that uses a formatter/parser based on the given Locale and decimal format pattern.
      Parameters:
      locale - the Locale that will be used by the formatter/parser. If null, the user's locale will be used.
      pattern - the pattern describing the number format. If null, a default formatter/parser will be used.
      See Also:
    • CurrencyStringConverter

      public CurrencyStringConverter(NumberFormat numberFormat)
      Creates a CurrencyStringConverter 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.