java.lang.Object
javafx.util.StringConverter<Number>
javafx.util.converter.NumberStringConverter
javafx.util.converter.PercentageStringConverter
public class PercentageStringConverter extends NumberStringConverter
StringConverter
implementation for Number
values
that represent percentages.
- Since:
- JavaFX 2.1
- See Also:
CurrencyStringConverter
,NumberStringConverter
,StringConverter
-
Constructor Summary
Constructors Constructor Description PercentageStringConverter()
PercentageStringConverter(NumberFormat numberFormat)
PercentageStringConverter(Locale locale)
-
Method Summary
Modifier and Type Method Description NumberFormat
getNumberFormat()
Return aNumberFormat
instance to use for formatting and parsing in thisStringConverter
.
-
Constructor Details
-
PercentageStringConverter
public PercentageStringConverter() -
PercentageStringConverter
-
PercentageStringConverter
-
-
Method Details
-
getNumberFormat
Return a
NumberFormat
instance to use for formatting and parsing in thisStringConverter
.- Overrides:
getNumberFormat
in classNumberStringConverter
- Returns:
- a
NumberFormat
instance for formatting and parsing in thisStringConverter
-