public class ListModelConverter extends Object implements TypeConverter, Serializable
TypeConverter implementation for converting collection to ListModel and vice versa.
Since zk 6.0.1 This class doesn't handle setMultiple and Selectable, you should use corresponding new converter for different component if it has selection.IGNORE| Constructor and Description |
|---|
ListModelConverter()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
coerceToBean(Object val,
org.zkoss.zk.ui.Component comp)
Deprecated.
Convert a
BindingListModel to Set, Map, List, or BindingListModel (itself). |
Object |
coerceToUi(Object val,
org.zkoss.zk.ui.Component comp)
Deprecated.
Convert a Set, Map, List, Object[], Enum, or other kind of BindingListModel to associated
BindingListModel. |
protected org.zkoss.zul.ListModel<?> |
getComponentModel(org.zkoss.zk.ui.Component comp)
Deprecated.
Gets the model of the component, the sub-class should override this method
|
protected BindingListModel<?> |
handleWrappedNonListModel(org.zkoss.zk.ui.Component comp,
BindingListModel<?> wrappedModel)
Deprecated.
Handles the wrapped non-list-model, by default it return the original one.
|
public Object coerceToUi(Object val, org.zkoss.zk.ui.Component comp)
BindingListModel.coerceToUi in interface TypeConverterval - must be instanceof Set, Map, List, Object[], Enum Class, or other kind of BindingListModel implementation.comp - associated componentTypeConverter.IGNORE
if you want DataBinder to ignore the assignment.protected org.zkoss.zul.ListModel<?> getComponentModel(org.zkoss.zk.ui.Component comp)
protected BindingListModel<?> handleWrappedNonListModel(org.zkoss.zk.ui.Component comp, BindingListModel<?> wrappedModel)
public Object coerceToBean(Object val, org.zkoss.zk.ui.Component comp)
BindingListModel to Set, Map, List, or BindingListModel (itself).coerceToBean in interface TypeConverterval - must be BindingListModelSet, BindingListModelList, BindingListModelMap, or other kind of BindingListModelcomp - associated componentTypeConverter.IGNORE
if you want DataBinder to ignore the assignment.Copyright © 2015. All rights reserved.