- java.lang.Object
-
- javafx.util.StringConverter<Number>
-
- javafx.util.converter.NumberStringConverter
-
- javafx.util.converter.CurrencyStringConverter
-
public class CurrencyStringConverter extends NumberStringConverter
StringConverterimplementation forNumbervalues that represent currency.- Since:
- JavaFX 2.1
- See Also:
-
PercentageStringConverter,NumberStringConverter,StringConverter
-
Constructor Summary
Constructors Constructor Description CurrencyStringConverter()CurrencyStringConverter(String pattern)CurrencyStringConverter(NumberFormat numberFormat)CurrencyStringConverter(Locale locale)CurrencyStringConverter(Locale locale, String pattern)
-
Method Summary
All MethodsInstance MethodsConcrete Methods Modifier and Type Method Description protected NumberFormatgetNumberFormat()Return aNumberFormatinstance to use for formatting and parsing in thisStringConverter.-
Methods inherited from class javafx.util.converter.NumberStringConverter
fromString, toString
-
-
Constructor Detail
-
CurrencyStringConverter
public CurrencyStringConverter()
-
CurrencyStringConverter
public CurrencyStringConverter(Locale locale)
-
CurrencyStringConverter
public CurrencyStringConverter(String pattern)
-
CurrencyStringConverter
public CurrencyStringConverter(NumberFormat numberFormat)
-
-
Method Detail
-
getNumberFormat
protected NumberFormat getNumberFormat()
Return a
NumberFormatinstance to use for formatting and parsing in thisStringConverter.- Overrides:
-
getNumberFormatin classNumberStringConverter - Returns:
- a
NumberFormatinstance for formatting and parsing in thisStringConverter
-
© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.