public class ListModelConverter extends java.lang.Object implements TypeConverter, java.io.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 |
---|---|
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.
|
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 componentTypeConverter.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 componentTypeConverter.IGNORE
if you want DataBinder to ignore the assignment.Copyright © 2005-2018 Potix Corporation. All Rights Reserved.