|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.bind.converter.sys.GridModelConverter
public class GridModelConverter
The Converter
implementation of the grid for converting collection to ListModel and vice versa.
Constructor Summary | |
---|---|
GridModelConverter()
|
Method Summary | |
---|---|
java.lang.Object |
coerceToBean(java.lang.Object val,
Component comp,
BindContext ctx)
Convert a ListModel to Set, Map, List, or ListModel (itself). |
java.lang.Object |
coerceToUi(java.lang.Object val,
Component comp,
BindContext ctx)
Convert a Set, Map, List, Object[], Enum, or other kind of ListModel to associated ListModel . |
protected ListModel<?> |
getComponentModel(Component comp)
|
protected ListModel<?> |
handleWrappedModel(BindContext ctx,
Component comp,
ListModel<?> model)
post processing the wrapped model. default return original one |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GridModelConverter()
Method Detail |
---|
protected ListModel<?> getComponentModel(Component comp)
comp
- the component that has listmodel
protected ListModel<?> handleWrappedModel(BindContext ctx, Component comp, ListModel<?> model)
ctx
- the contextcomp
- the component of the convertermodel
- the wrapped model
public java.lang.Object coerceToUi(java.lang.Object val, Component comp, BindContext ctx)
ListModel
.
coerceToUi
in interface Converter
val
- must be instanceof Set, Map, List, Object[], Enum Class, or other kind of ListModel implementation.comp
- associated componentctx
- bind contextpublic java.lang.Object coerceToBean(java.lang.Object val, Component comp, BindContext ctx)
ListModel
to Set, Map, List, or ListModel (itself).
coerceToBean
in interface Converter
val
- must be ListModelSet, ListModelList, ListModelMap, or other kind of ListModelcomp
- associated componentctx
- bind context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |