📄 typeconverter.java
字号:
/* TypeConverter.java{{IS_NOTE Purpose: Description: History: Thu Nov 16 12:43:01 2006, Created by Henri Chen}}IS_NOTECopyright (C) 2006 Potix Corporation. All Rights Reserved.{{IS_RIGHT}}IS_RIGHT*/package org.zkoss.zkplus.databind;import org.zkoss.zk.ui.Component;/** * 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 */public interface TypeConverter { /** Convert an value object to UI component attribute type. * @param val the object to be corece to UI component attribute type. * @param comp associated component */ public Object coerceToUi(Object val, Component comp); /** Convert an value object to bean property type. * @param val the object to be corece to backend bean property type. * @param comp associated component */ public Object coerceToBean(Object val, Component comp);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -