org.zkoss.zkplus.databind
Interface TypeConverter

All Known Implementing Classes:
ListModelConverter, RadiogroupSelectedItemConverter, SelectedItemConverter

public interface TypeConverter

Converter to cast object class between UI Component attribute and backend data bean property. This interface is used in DataBinder. The implementation of this converter should not hold any state since it is shared by the whole application.

Author:
Henri Chen

Method Summary
 java.lang.Object coerceToBean(java.lang.Object val, org.zkoss.zk.ui.Component comp)
          Convert an value object to bean property type.
 java.lang.Object coerceToUi(java.lang.Object val, org.zkoss.zk.ui.Component comp)
          Convert an value object to UI component attribute type.
 

Method Detail

coerceToUi

java.lang.Object coerceToUi(java.lang.Object val,
                            org.zkoss.zk.ui.Component comp)
Convert an value object to UI component attribute type.

Parameters:
val - the object to be corece to UI component attribute type.
comp - associated component

coerceToBean

java.lang.Object coerceToBean(java.lang.Object val,
                              org.zkoss.zk.ui.Component comp)
Convert an value object to bean property type.

Parameters:
val - the object to be corece to backend bean property type.
comp - associated component


Copyright © 2005-2007 Potix Corporation. All Rights Reserved.