typeconverter.java
来自「非常接近C/S操作方式的Java Ajax框架-ZK 用ZK框架使你的B/S应」· Java 代码 · 共 40 行
JAVA
40 行
/* 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 + =
减小字号Ctrl + -
显示快捷键?