Class PercentageStringConverter
java.lang.Object
javafx.util.StringConverter<Number>
javafx.util.converter.NumberStringConverter
javafx.util.converter.PercentageStringConverter
A
StringConverter implementation for Number values that represent percentages.- Since:
- JavaFX 2.1
-
Constructor Summary
ConstructorsConstructorDescriptionCreates aPercentageStringConverterthat uses a formatter/parser based on the user'sLocale.PercentageStringConverter(NumberFormat numberFormat) Creates aPercentageStringConverterthat uses the given formatter/parser.PercentageStringConverter(Locale locale) Creates aPercentageStringConverterthat uses a formatter/parser based on the given locale. -
Method Summary
Methods declared in class NumberStringConverter
fromString, toString
-
Constructor Details
-
PercentageStringConverter
public PercentageStringConverter()Creates aPercentageStringConverterthat uses a formatter/parser based on the user'sLocale. -
PercentageStringConverter
Creates aPercentageStringConverterthat 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.
-
PercentageStringConverter
Creates aPercentageStringConverterthat 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.
-