org.zkoss.bind.converter.sys
Class ListboxModelConverter

java.lang.Object
  extended by org.zkoss.bind.converter.sys.AbstractListModelConverter<Listbox>
      extended by org.zkoss.bind.converter.sys.ListboxModelConverter
All Implemented Interfaces:
java.io.Serializable, Converter<java.lang.Object,java.lang.Object,Listbox>

public class ListboxModelConverter
extends AbstractListModelConverter<Listbox>

The Converter implementation of the listbox for converting collection to ListModel and vice versa.

Since:
6.0.0
Author:
dennis
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.zkoss.bind.Converter
IGNORED_VALUE
 
Constructor Summary
ListboxModelConverter()
           
 
Method Summary
protected  ListModel<?> getComponentModel(Listbox comp)
           
protected  ListModel<?> handleWrappedModel(BindContext ctx, Listbox comp, ListModel<?> model)
          post processing the wrapped model. default return original one
 
Methods inherited from class org.zkoss.bind.converter.sys.AbstractListModelConverter
coerceToBean, coerceToUi
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListboxModelConverter

public ListboxModelConverter()
Method Detail

getComponentModel

protected ListModel<?> getComponentModel(Listbox comp)
Specified by:
getComponentModel in class AbstractListModelConverter<Listbox>
Parameters:
comp - the component that has listmodel
Returns:
null if no list model for the component

handleWrappedModel

protected ListModel<?> handleWrappedModel(BindContext ctx,
                                          Listbox comp,
                                          ListModel<?> model)
Description copied from class: AbstractListModelConverter
post processing the wrapped model. default return original one

Overrides:
handleWrappedModel in class AbstractListModelConverter<Listbox>
Parameters:
ctx - the context
comp - the component of the converter
model - the wrapped model
Returns:
the list model


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