⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 auinvoke.java

📁 ZK 基础介绍 功能操作 模块 结合数据库操作
💻 JAVA
字号:
/* AuInvoke.java{{IS_NOTE	Purpose:			Description:			History:		Fri Jul  6 22:52:34     2007, Created by tomyeh}}IS_NOTECopyright (C) 2007 Potix Corporation. All Rights Reserved.{{IS_RIGHT	This program is distributed under GPL Version 2.0 in the hope that	it will be useful, but WITHOUT ANY WARRANTY.}}IS_RIGHT*/package org.zkoss.zk.au.out;import org.zkoss.zk.ui.Component;import org.zkoss.zk.au.AuResponse;/** * A response to ask the client to execute the specified client function. * Unlike {@link AuScript}, it invokes the function called zkType.function, * where Type is the component's type (at the client) and function * is the function name specified in {@link AuInvoke}. * * <p>data[0]: the component UUID<br/> * data[1]: the client function name (i.e., JavaScript function)<br/> * data[2]: the second argument<br/> * data[3]: the third argument... * * <p>Note: the first argument is always the component itself. *  * @author tomyeh * @since 3.0.0 */public class AuInvoke extends AuResponse {	/** Construct AuInvoke to call a client function with one argument,	 * the component itself.	 *	 * <p>In other words, it invokes (assume Type is the comp's z.type)<br/>	 * <code>zkType.function(comp)</code>	 *	 * @param comp the component that this script depends on.	 * It cannot be null.	 * @param function the function name	 */	public AuInvoke(Component comp, String function) {		super("invoke", comp, new String[] {comp.getUuid(), function});	}	/** Construct AuInvoke to call a client function with two arguments,	 * the component itself and arg.	 *	 * <p>In other words, it invokes (assume Type is the comp's z.type)<br/>	 * <code>zkType.function(comp, arg)</code>	 *	 * @param comp the component that this script depends on.	 * It cannot be null.	 * @param function the function name	 * @param arg the additional argument	 */	public AuInvoke(Component comp, String function, String arg) {		super("invoke", comp,			new String[] {comp.getUuid(), function, arg});	}	/** Construct AuInvoke to call a client function with three arguments,	 * the component itself, arg1 and arg2.	 *	 * <p>In other words, it invokes (assume Type is the comp's z.type)<br/>	 * <code>zkType.function(comp, arg1, arg2)</code>	 *	 * @param comp the component that this script depends on.	 * It cannot be null.	 * @param function the function name	 */	public AuInvoke(Component comp, String function, String arg1, String arg2) {		super("invoke", comp, new String[] {comp.getUuid(), function,			arg1, arg2});	}	/** Construct AuInvoke to call a client function with four arguments,	 * the component itself, arg1, arg2 and arg3.	 *	 * <p>In other words, it invokes (assume Type is the comp's z.type)<br/>	 * <code>zkType.function(comp, arg1, arg2, arg3)</code>	 *	 * @param comp the component that this script depends on.	 * It cannot be null.	 * @param function the function name	 */	public AuInvoke(Component comp, String function, String arg1, String arg2,	String arg3) {		super("invoke", comp, new String[] {comp.getUuid(), function,			arg1, arg2, arg3});	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -