|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.bind.converter.sys.RadiogroupModelConverter
public class RadiogroupModelConverter
The Converter implementation of the radiogroup for converting collection to ListModel and vice versa.
| Constructor Summary | |
|---|---|
RadiogroupModelConverter()
|
|
| 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 RadiogroupModelConverter()
| 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 Converterval - must be instanceof Set, Map, List, Object[], Enum Class, or other kind of ListModel implementation.comp - associated componentctx - bind context
public java.lang.Object coerceToBean(java.lang.Object val,
Component comp,
BindContext ctx)
ListModel to Set, Map, List, or ListModel (itself).
coerceToBean in interface Converterval - 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 | |||||||||