public abstract class AbstractSelectedIndexConverter<C extends Component> extends java.lang.Object implements Converter<java.lang.Object,java.lang.Object,C>, java.io.Serializable
IGNORED_VALUE
Constructor and Description |
---|
AbstractSelectedIndexConverter() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
coerceToBean(java.lang.Object val,
C comp,
BindContext ctx)
Coerces a value to bean value to save to a bean
|
java.lang.Object |
coerceToUi(java.lang.Object val,
C comp,
BindContext ctx)
Coerces a value to another value to load to a component
|
protected abstract ListModel<?> |
getComponentModel(C comp) |
public java.lang.Object coerceToUi(java.lang.Object val, C comp, BindContext ctx)
Converter
coerceToUi
in interface Converter<java.lang.Object,java.lang.Object,C extends Component>
val
- the bean valuecomp
- the component to be loaded the valuectx
- the bind contextpublic java.lang.Object coerceToBean(java.lang.Object val, C comp, BindContext ctx)
Converter
coerceToBean
in interface Converter<java.lang.Object,java.lang.Object,C extends Component>
val
- the value of component attribute.comp
- the component provides the valuectx
- the bind contextCopyright © 2005-2011 Potix Corporation. All Rights Reserved.