Number Converter |
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.
| Legal Notices. Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. |