Top Description Fields Constructors Methods
javafx.util.converter

public Class CurrencyStringConverter

extends NumberStringConverter
Class Inheritance
Imports
java.text.DecimalFormat, .DecimalFormatSymbols, .NumberFormat, java.util.Locale, javafx.util.StringConverter

A StringConverter implementation for Number values that represent currency. Instances of this class are immutable.
Since
JavaFX 2.1
See Also
PercentageStringConverter, NumberStringConverter, StringConverter

Field Summary

Inherited from javafx.util.converter.NumberStringConverter:
localenumberFormatpattern

Constructor Summary

AccessConstructor and Description
public
CurrencyStringConverter()

Constructs a CurrencyStringConverter with the default locale and format.

public
CurrencyStringConverter(Locale
the locale used in determining the number format used to format the string
locale
)

Constructs a CurrencyStringConverter with the given locale and the default format.

public
CurrencyStringConverter(String
the string pattern used in determining the number format used to format the string
pattern
)

Constructs a CurrencyStringConverter with the default locale and the given decimal format pattern.

public
CurrencyStringConverter(Locale
the locale used in determining the number format used to format the string
locale
,
String
the string pattern used in determining the number format used to format the string
pattern
)

Constructs a CurrencyStringConverter with the given locale and decimal format pattern.

public
CurrencyStringConverter(NumberFormat
the number format used to format the string
numberFormat
)

Constructs a CurrencyStringConverter with the given number format.

Method Summary

Modifier and TypeMethod and Description
protected NumberFormat
getNumberFormat()

Overrides javafx.util.converter.NumberStringConverter.getNumberFormat.

Deprecated for removal since 22. This method was exposed erroneously and will be removed in a future version.

Returns a NumberFormat instance to use for formatting and parsing in this StringConverter.

Inherited from javafx.util.converter.NumberStringConverter:
fromStringtoString

Constructor Detail

CurrencyStringConverterback to summary
public CurrencyStringConverter()

Constructs a CurrencyStringConverter with the default locale and format.

CurrencyStringConverterback to summary
public CurrencyStringConverter(Locale locale)

Constructs a CurrencyStringConverter with the given locale and the default format.

Parameters
locale:Locale

the locale used in determining the number format used to format the string

CurrencyStringConverterback to summary
public CurrencyStringConverter(String pattern)

Constructs a CurrencyStringConverter with the default locale and the given decimal format pattern.

Parameters
pattern:String

the string pattern used in determining the number format used to format the string

See Also
java.text.DecimalFormat
CurrencyStringConverterback to summary
public CurrencyStringConverter(Locale locale, String pattern)

Constructs a CurrencyStringConverter with the given locale and decimal format pattern.

Parameters
locale:Locale

the locale used in determining the number format used to format the string

pattern:String

the string pattern used in determining the number format used to format the string

See Also
java.text.DecimalFormat
CurrencyStringConverterback to summary
public CurrencyStringConverter(NumberFormat numberFormat)

Constructs a CurrencyStringConverter with the given number format.

Parameters
numberFormat:NumberFormat

the number format used to format the string

Method Detail

getNumberFormatback to summary
protected NumberFormat getNumberFormat()

Overrides javafx.util.converter.NumberStringConverter.getNumberFormat.

Doc from javafx.util.converter.NumberStringConverter.getNumberFormat.

Deprecated

for removal since 22.

This method was exposed erroneously and will be removed in a future version.

Returns a NumberFormat instance to use for formatting and parsing in this StringConverter.

Annotations
@Deprecated
forRemoval:true
since:22
@SuppressWarnings:removal
@Override