- java.lang.Object
-
- javafx.util.StringConverter<Number>
-
- javafx.util.converter.NumberStringConverter
-
- javafx.util.converter.PercentageStringConverter
-
public class PercentageStringConverter extends NumberStringConverter
StringConverter
implementation forNumber
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
.-
Methods inherited from class javafx.util.converter.NumberStringConverter
fromString, toString
-
-
-
-
Constructor Detail
-
PercentageStringConverter
public PercentageStringConverter()
-
PercentageStringConverter
public PercentageStringConverter(Locale locale)
-
PercentageStringConverter
public PercentageStringConverter(NumberFormat numberFormat)
-
-
Method Detail
-
getNumberFormat
public NumberFormat 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
-
-