java.lang.Object
javafx.util.StringConverter<Number>
javafx.util.converter.NumberStringConverter
javafx.util.converter.CurrencyStringConverter
A
StringConverter implementation for Number values that represent currency. Instances of this class are immutable.- Since:
- JavaFX 2.1
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs aCurrencyStringConverterwith the default locale and format.CurrencyStringConverter(String pattern) Constructs aCurrencyStringConverterwith the default locale and the given decimal format pattern.CurrencyStringConverter(NumberFormat numberFormat) Constructs aCurrencyStringConverterwith the given number format.CurrencyStringConverter(Locale locale) Constructs aCurrencyStringConverterwith the given locale and the default format.CurrencyStringConverter(Locale locale, String pattern) Constructs aCurrencyStringConverterwith the given locale and decimal format pattern. -
Method Summary
Modifier and TypeMethodDescriptionprotected NumberFormatDeprecated, for removal: This API element is subject to removal in a future version.This method was exposed erroneously and will be removed in a future version.Methods declared in class javafx.util.converter.NumberStringConverter
fromString, toString
-
Constructor Details
-
CurrencyStringConverter
public CurrencyStringConverter()Constructs aCurrencyStringConverterwith the default locale and format. -
CurrencyStringConverter
Constructs aCurrencyStringConverterwith the given locale and the default format.- Parameters:
locale- the locale used in determining the number format used to format the string
-
CurrencyStringConverter
Constructs aCurrencyStringConverterwith 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:
-
CurrencyStringConverter
Constructs aCurrencyStringConverterwith the given locale and decimal format pattern.- Parameters:
locale- the locale used in determining the number format used to format the stringpattern- the string pattern used in determining the number format used to format the string- See Also:
-
CurrencyStringConverter
Constructs aCurrencyStringConverterwith the given number format.- Parameters:
numberFormat- the number format used to format the string
-
-
Method Details
-
getNumberFormat
Deprecated, for removal: This API element is subject to removal in a future version.This method was exposed erroneously and will be removed in a future version.Description copied from class:NumberStringConverterReturns aNumberFormatinstance to use for formatting and parsing in thisStringConverter.- Overrides:
getNumberFormatin classNumberStringConverter- Returns:
- a
NumberFormatinstance for formatting and parsing in thisStringConverter
-