public class FormatedNumberConverter extends java.lang.Object implements Converter, java.io.Serializable
IGNORED_VALUE
Constructor and Description |
---|
FormatedNumberConverter() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
coerceToBean(java.lang.Object val,
Component comp,
BindContext ctx)
Convert String to Number.
|
java.lang.Object |
coerceToUi(java.lang.Object val,
Component comp,
BindContext ctx)
Convert Number to String.
|
public java.lang.Object coerceToUi(java.lang.Object val, Component comp, BindContext ctx)
coerceToUi
in interface Converter
val
- number to be convertedcomp
- associated componentctx
- bind context for associate Binding
and extra parameter (e.g. format)public java.lang.Object coerceToBean(java.lang.Object val, Component comp, BindContext ctx)
coerceToBean
in interface Converter
val
- number in string formcomp
- associated componentctx
- bind context for associate Binding
and extra parameter (e.g. format)Copyright © 2005-2011 Potix Corporation. All Rights Reserved.