org.zkoss.zkplus.databind
Class ListboxListModelConverter

java.lang.Object
  extended by org.zkoss.zkplus.databind.ListModelConverter
      extended by org.zkoss.zkplus.databind.ListboxListModelConverter
All Implemented Interfaces:
java.io.Serializable, TypeConverter

public class ListboxListModelConverter
extends ListModelConverter

The TypeConverter implementation for converting collection to ListModel of a listbox

Since:
6.0.1
Author:
dennis
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.zkoss.zkplus.databind.TypeConverter
IGNORE
 
Constructor Summary
ListboxListModelConverter()
           
 
Method Summary
protected  ListModel<?> getComponentModel(Component comp)
          Gets the model of the component, the sub-class should override this method
protected  BindingListModel<?> handleWrappedNonListModel(Component comp, BindingListModel<?> wrappedModel)
          Handles the wrapped non-list-model, by default it return the original one.
 
Methods inherited from class org.zkoss.zkplus.databind.ListModelConverter
coerceToBean, coerceToUi
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListboxListModelConverter

public ListboxListModelConverter()
Method Detail

getComponentModel

protected ListModel<?> getComponentModel(Component comp)
Description copied from class: ListModelConverter
Gets the model of the component, the sub-class should override this method

Overrides:
getComponentModel in class ListModelConverter

handleWrappedNonListModel

protected BindingListModel<?> handleWrappedNonListModel(Component comp,
                                                        BindingListModel<?> wrappedModel)
Description copied from class: ListModelConverter
Handles the wrapped non-list-model, by default it return the original one.

The sub-class could override this method if it needs to do some post process on the wrapped model.

Overrides:
handleWrappedNonListModel in class ListModelConverter


Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo