Top Description Fields Constructors Methods
javafx.util.converter

public Class PercentageStringConverter

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

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

Field Summary

Inherited from javafx.util.converter.NumberStringConverter:
localenumberFormatpattern

Constructor Summary

AccessConstructor and Description
public
PercentageStringConverter()

Constructs a PercentageStringConverter with the default locale and format.

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

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

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

Constructs a PercentageStringConverter with the given number format.

Method Summary

Modifier and TypeMethod and Description
public 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

PercentageStringConverterback to summary
public PercentageStringConverter()

Constructs a PercentageStringConverter with the default locale and format.

PercentageStringConverterback to summary
public PercentageStringConverter(Locale locale)

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

Parameters
locale:Locale

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

PercentageStringConverterback to summary
public PercentageStringConverter(NumberFormat numberFormat)

Constructs a PercentageStringConverter with the given number format.

Parameters
numberFormat:NumberFormat

the number format used to format the string

Method Detail

getNumberFormatback to summary
public 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