|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zkplus.databind.ListModelConverter
public class ListModelConverter
The TypeConverter
implementation for converting collection to ListModel and vice versa.
Field Summary |
---|
Fields inherited from interface org.zkoss.zkplus.databind.TypeConverter |
---|
IGNORE |
Constructor Summary | |
---|---|
ListModelConverter()
Deprecated. |
Method Summary | |
---|---|
java.lang.Object |
coerceToBean(java.lang.Object val,
Component comp)
Deprecated. Convert a BindingListModel to Set, Map, List, or BindingListModel (itself). |
java.lang.Object |
coerceToUi(java.lang.Object val,
Component comp)
Deprecated. Convert a Set, Map, List, Object[], Enum, or other kind of BindingListModel to associated BindingListModel . |
protected ListModel<?> |
getComponentModel(Component comp)
Deprecated. Gets the model of the component, the sub-class should override this method |
protected BindingListModel<?> |
handleWrappedNonListModel(Component comp,
BindingListModel<?> wrappedModel)
Deprecated. Handles the wrapped non-list-model, by default it return the original one. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ListModelConverter()
Method Detail |
---|
public java.lang.Object coerceToUi(java.lang.Object val, Component comp)
BindingListModel
.
coerceToUi
in interface TypeConverter
val
- must be instanceof Set, Map, List, Object[], Enum Class, or other kind of BindingListModel implementation.comp
- associated component
TypeConverter.IGNORE
if you want DataBinder to ignore the assignment.protected ListModel<?> getComponentModel(Component comp)
protected BindingListModel<?> handleWrappedNonListModel(Component comp, BindingListModel<?> wrappedModel)
public java.lang.Object coerceToBean(java.lang.Object val, Component comp)
BindingListModel
to Set, Map, List, or BindingListModel (itself).
coerceToBean
in interface TypeConverter
val
- must be BindingListModelSet, BindingListModelList, BindingListModelMap, or other kind of BindingListModelcomp
- associated component
TypeConverter.IGNORE
if you want DataBinder to ignore the assignment.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |