StringConverter implementation for Number values. Instances of this class are immutable.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Locale | |
| pack-priv final NumberFormat | |
| pack-priv final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | NumberStringConverter(Locale
the locale used in determining the number format used to format the string locale)Constructs a |
| public | NumberStringConverter(String
the string pattern used in determining the number format used to format the string pattern)Constructs a |
| public | NumberStringConverter(Locale
the locale used in determining the number format used to format the string locale, String the string pattern used in determining the number format used to format the string pattern)Constructs a |
| public | NumberStringConverter(NumberFormat
the number format used to format the string numberFormat)Constructs a |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Number | fromString(String
the value)String to convertImplements abstract javafx. Converts the string provided into an object defined by the specific converter. |
| protected NumberFormat | Returns: aNumberFormat instance for formatting and parsing in this
StringConverter
Deprecated
for removal since 22. This method was exposed erroneously and will be removed in a future version.
Returns a |
| public String | toString(Number
the object of type value)T to convertImplements abstract javafx. Converts the object provided into its string form. |
| locale | back to summary |
|---|---|
| pack-priv final Locale locale | |
| numberFormat | back to summary |
|---|---|
| pack-priv final NumberFormat numberFormat | |
| pattern | back to summary |
|---|---|
| pack-priv final String pattern | |
| NumberStringConverter | back to summary |
|---|---|
| public NumberStringConverter() Constructs a | |
| NumberStringConverter | back to summary |
|---|---|
| public NumberStringConverter(Locale locale) Constructs a
| |
| NumberStringConverter | back to summary |
|---|---|
| public NumberStringConverter(String pattern) Constructs a
| |
| NumberStringConverter | back to summary |
|---|---|
| public NumberStringConverter(Locale locale, String pattern) Constructs a
| |
| NumberStringConverter | back to summary |
|---|---|
| public NumberStringConverter(NumberFormat numberFormat) Constructs a
| |
| NumberStringConverter | back to summary |
|---|---|
| pack-priv NumberStringConverter(Locale locale, String pattern, NumberFormat numberFormat) | |
| fromString | back to summary |
|---|---|
| public Number fromString(String value) Implements abstract javafx. Doc from javafx. Converts the string provided into an object defined by the specific converter. Format of the string and type of the resulting object is defined by the specific converter. | |
| getNumberFormat | back to summary |
|---|---|
| protected NumberFormat getNumberFormat()
Deprecated for removal since 22. This method was exposed erroneously and will be removed in a future version. Returns a
| |
| toString | back to summary |
|---|---|
| public String toString(Number value) Implements abstract javafx. Doc from javafx. Converts the object provided into its string form. Format of the returned string is defined by the specific converter. | |