Converts between java.lang.String
values in your component properties
and data types of java.lang.Number
. The conversion usually applies to the property a component uses to display values and to pick up values entered by users. For example, the Text Field component uses the text
property for this purpose.
Long
if possible (within the range [Long.MIN_VALUE, Long.MAX_VALUE
] and with no decimals), otherwise a Double
. If you need the converter to return a numerical type other than Long
or Double
, or you need to narrow the choice to a specific type, choose a converter that specifically returns that type, such as Integer Converter, Long Converter, or Double Converter. When you bind a component, the IDE normally identifies the data type for
you and sets the appropriate converter when you establish a binding to the
value property. However, you can also add a converter manually by
setting the component's converter
property.
Conversion error occurred.
name: 'entered-value' must be a converter-type.
In this message, name is either the ID of the component or the contents of its label if the component has one, entered-value is the value that the user entered, and converter-type is the type of the converter. For example, if the converter is a Big Decimal converter, the converter-type is signed decimal number
.