- java.lang.Object
-
- javafx.util.StringConverter<Number>
-
- javafx.util.converter.NumberStringConverter
-
- javafx.util.converter.CurrencyStringConverter
-
public class CurrencyStringConverter extends NumberStringConverter
StringConverter
代表货币的Number
值的实现。- 从以下版本开始:
- JavaFX 2.1
- 另请参见:
-
PercentageStringConverter
,NumberStringConverter
,StringConverter
-
-
构造方法摘要
构造方法 Constructor 描述 CurrencyStringConverter()
CurrencyStringConverter(String pattern)
CurrencyStringConverter(NumberFormat numberFormat)
CurrencyStringConverter(Locale locale)
CurrencyStringConverter(Locale locale, String pattern)
-
方法摘要
所有方法 接口方法 具体的方法 Modifier and Type 方法 描述 protected NumberFormat
getNumberFormat()
返回一个NumberFormat
实例,用于格式化和解析StringConverter
。-
Methods inherited from class javafx.util.converter.NumberStringConverter
fromString, toString
-
-
-
-
构造方法详细信息
-
CurrencyStringConverter
public CurrencyStringConverter()
-
CurrencyStringConverter
public CurrencyStringConverter(Locale locale)
-
CurrencyStringConverter
public CurrencyStringConverter(String pattern)
-
CurrencyStringConverter
public CurrencyStringConverter(NumberFormat numberFormat)
-
-
方法详细信息
-
getNumberFormat
protected NumberFormat getNumberFormat()
返回一个
NumberFormat
实例,用于格式化和解析StringConverter
。- 重写:
-
getNumberFormat
在NumberStringConverter
- 结果
-
a
NumberFormat
instance for formatting and parsing in thisStringConverter
-
-