org.zkoss.bind.converter.sys
Class SelectboxSelectedIndexConverter

java.lang.Object
  extended by org.zkoss.bind.converter.sys.SelectboxSelectedIndexConverter
All Implemented Interfaces:
java.io.Serializable, Converter

public class SelectboxSelectedIndexConverter
extends java.lang.Object

Convert selected index to bean and vice versa.

Since:
6.0.0
Author:
dennis
See Also:
Serialized Form

Constructor Summary
SelectboxSelectedIndexConverter()
           
 
Method Summary
 java.lang.Object coerceToBean(java.lang.Object val, Component comp, BindContext ctx)
           
 java.lang.Object coerceToUi(java.lang.Object val, Component comp, BindContext ctx)
           
protected  ListModel<?> getComponentModel(Component comp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectboxSelectedIndexConverter

public SelectboxSelectedIndexConverter()
Method Detail

getComponentModel

protected ListModel<?> getComponentModel(Component comp)

coerceToUi

public java.lang.Object coerceToUi(java.lang.Object val,
                                   Component comp,
                                   BindContext ctx)
Specified by:
coerceToUi in interface Converter

coerceToBean

public java.lang.Object coerceToBean(java.lang.Object val,
                                     Component comp,
                                     BindContext ctx)
Specified by:
coerceToBean in interface Converter


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