public abstract class AbstractListModelConverter<C extends org.zkoss.zk.ui.Component> extends Object implements Converter<Object,Object,C>, Serializable
Converter implementation for converting collection to ListModel and vice versa.IGNORED_VALUE| Constructor and Description |
|---|
AbstractListModelConverter() |
| Modifier and Type | Method and Description |
|---|---|
Object |
coerceToBean(Object val,
C comp,
BindContext ctx)
Convert a
ListModel to Set, Map, List, or ListModel (itself). |
Object |
coerceToUi(Object val,
C comp,
BindContext ctx)
Convert a Set, Map, List, Object[], Enum, or other kind of ListModel to associated
ListModel. |
protected abstract org.zkoss.zul.ListModel<?> |
getComponentModel(C comp) |
protected org.zkoss.zul.ListModel<?> |
handleWrappedModel(BindContext ctx,
C comp,
org.zkoss.zul.ListModel<?> model)
post processing the wrapped model.
|
protected abstract org.zkoss.zul.ListModel<?> getComponentModel(C comp)
comp - the component that has listmodelprotected org.zkoss.zul.ListModel<?> handleWrappedModel(BindContext ctx, C comp, org.zkoss.zul.ListModel<?> model)
ctx - the contextcomp - the component of the convertermodel - the wrapped modelpublic Object coerceToUi(Object val, C comp, BindContext ctx)
ListModel.coerceToUi in interface Converter<Object,Object,C extends org.zkoss.zk.ui.Component>val - must be instanceof Set, Map, List, Object[], Enum Class, or other kind of ListModel implementation.comp - associated componentctx - bind contextpublic Object coerceToBean(Object val, C comp, BindContext ctx)
ListModel to Set, Map, List, or ListModel (itself).coerceToBean in interface Converter<Object,Object,C extends org.zkoss.zk.ui.Component>val - must be ListModelSet, ListModelList, ListModelMap, or other kind of ListModelcomp - associated componentctx - bind contextCopyright © 2020. All rights reserved.