All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zkoss.zk.au.out.AuScript Maven / Gradle / Ivy

There is a newer version: 10.0.0-jakarta
Show newest version
/* AuScript.java

	Purpose:
		
	Description:
		
	History:
		Thu Oct 13 10:29:32     2005, Created by tomyeh

Copyright (C) 2005 Potix Corporation. All Rights Reserved.

{{IS_RIGHT
	This program is distributed under LGPL Version 2.1 in the hope that
	it will be useful, but WITHOUT ANY WARRANTY.
}}IS_RIGHT
*/
package org.zkoss.zk.au.out;

import org.zkoss.zk.au.AuResponse;
import org.zkoss.zk.ui.Component;

/**
 * A response to ask the client to execute the specified client scripts.
 *
 * 

data[0]: the client script codes (i.e., JavaScript codes) * *

{@link AuScript} is rarely used, unless you want to execute * a code snippet rather than a function invocation. * For the function invocation, it is better to use {@link AuInvoke} * instead (such as {@link AuInvoke#AuInvoke(Component,String, Object...)} and * {@link AuInvoke#AuInvoke(String, Object...)}). * * @author tomyeh * @see AuInvoke * @since 3.0.0 */ public class AuScript extends AuResponse { /** * @param depends the component that this script depends on. * Or null if this script shall always execute. */ public AuScript(Component depends, String script) { super("script", depends, script); } /** Constructs a AuScript response that doesn't depend on any component. * @since 6.0.0 */ public AuScript(String script) { this(null, script); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy