Class CurrencyStringConverter
java.lang.Object
javafx.util.StringConverter<Number>
javafx.util.converter.NumberStringConverter
javafx.util.converter.CurrencyStringConverter
A
StringConverter implementation for Number values that represent currency.- Since:
- JavaFX 2.1
-
Constructor Summary
ConstructorsConstructorDescriptionCreates aCurrencyStringConverterthat uses a formatter/parser based on the user'sLocale.CurrencyStringConverter(String pattern) Creates aCurrencyStringConverterthat uses a formatter/parser based on the user'sLocaleand the given decimal format pattern.CurrencyStringConverter(NumberFormat numberFormat) Creates aCurrencyStringConverterthat uses the given formatter/parser.CurrencyStringConverter(Locale locale) Creates aCurrencyStringConverterthat uses a formatter/parser based on the given locale.CurrencyStringConverter(Locale locale, String pattern) Creates aCurrencyStringConverterthat uses a formatter/parser based on the givenLocaleand decimal format pattern. -
Method Summary
Methods declared in class NumberStringConverter
fromString, toString
-
Constructor Details
-
CurrencyStringConverter
public CurrencyStringConverter()Creates aCurrencyStringConverterthat uses a formatter/parser based on the user'sLocale. -
CurrencyStringConverter
Creates aCurrencyStringConverterthat uses a formatter/parser based on the given locale.- Parameters:
locale- theLocalethat will be used by the formatter/parser. Ifnull, the user's locale will be used.
-
CurrencyStringConverter
-
CurrencyStringConverter
Creates aCurrencyStringConverterthat uses a formatter/parser based on the givenLocaleand decimal format pattern.- Parameters:
locale- theLocalethat will be used by the formatter/parser. Ifnull, the user's locale will be used.pattern- the pattern describing the number format. Ifnull, a default formatter/parser will be used.- See Also:
-
CurrencyStringConverter
Creates aCurrencyStringConverterthat uses the given formatter/parser.- Parameters:
numberFormat- the formatter/parser that will be used by thetoString()andfromString()methods. Ifnull, a default formatter/parser will be used.
-