public interface Converter<U,B,C extends Component>
Modifier and Type | Field and Description |
---|---|
static java.lang.Object |
IGNORED_VALUE
Indicates the returned value should be ignored to load to a component or save to a bean,
It is useful for writing a converter to manipulate component directly when loading or saving
Note :
If you want to return IGNORED_VALUE in the converter method, then you need to set U or B to Object. |
Modifier and Type | Method and Description |
---|---|
B |
coerceToBean(U compAttr,
C component,
BindContext ctx)
Coerces a value to bean value to save to a bean
|
U |
coerceToUi(B beanProp,
C component,
BindContext ctx)
Coerces a value to another value to load to a component
|
static final java.lang.Object IGNORED_VALUE
IGNORED_VALUE
in the converter method, then you need to set U or B to Object.U coerceToUi(B beanProp, C component, BindContext ctx)
beanProp
- the bean valuecomponent
- the component to be loaded the valuectx
- the bind contextB coerceToBean(U compAttr, C component, BindContext ctx)
compAttr
- the value of component attribute.component
- the component provides the valuectx
- the bind contextCopyright © 2005-2021 Potix Corporation. All Rights Reserved.