org.zkoss.bind.converter
Class FormatedNumberConverter
java.lang.Object
org.zkoss.bind.converter.FormatedNumberConverter
- All Implemented Interfaces:
- java.io.Serializable, Converter
public class FormatedNumberConverter
- extends java.lang.Object
- implements Converter, java.io.Serializable
Converter to convert String to Number.
- Since:
- 6.0.0
- Author:
- henrichen
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FormatedNumberConverter
public FormatedNumberConverter()
coerceToUi
public java.lang.Object coerceToUi(java.lang.Object val,
Component comp,
BindContext ctx)
- Convert Number to String.
- Specified by:
coerceToUi
in interface Converter
- Parameters:
val
- number to be convertedcomp
- associated componentctx
- bind context for associate Binding
and extra parameter (e.g. format)
- Returns:
- the converted String
coerceToBean
public java.lang.Object coerceToBean(java.lang.Object val,
Component comp,
BindContext ctx)
- Convert String to Number.
- Specified by:
coerceToBean
in interface Converter
- Parameters:
val
- number in string formcomp
- associated componentctx
- bind context for associate Binding
and extra parameter (e.g. format)
- Returns:
- the converted Number
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.