org.zkoss.zk.au
Class AuCmd

java.lang.Object
  extended by org.zkoss.zk.au.AuResponse
      extended by org.zkoss.zk.au.AuCmd

public class AuCmd
extends AuResponse

A response to ask the client to execute the specified client function. Unlike AuScript,

data[0]: the component UUID data[1]: the client function name (i.e., JavaScript function)
data[2]: the second argument
data[3]: the third argument...

Note: the first argument is always the component itself.

Since:
2.4.1
Author:
tomyeh

Constructor Summary
AuCmd(Component comp, java.lang.String function)
          Construct AuCmd to call a client function with one argument, the component itself.
AuCmd(Component comp, java.lang.String function, java.lang.String arg)
          Construct AuCmd to call a client function with two arguments, the component itself and arg.
AuCmd(Component comp, java.lang.String function, java.lang.String arg1, java.lang.String arg2)
          Construct AuCmd to call a client function with three arguments, the component itself, arg1 and arg2.
AuCmd(Component comp, java.lang.String function, java.lang.String arg1, java.lang.String arg2, java.lang.String arg3)
          Construct AuCmd to call a client function with four arguments, the component itself, arg1, arg2 and arg3.
 
Method Summary
 
Methods inherited from class org.zkoss.zk.au.AuResponse
equals, getCommand, getData, getDepends, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AuCmd

public AuCmd(Component comp,
             java.lang.String function)
Construct AuCmd to call a client function with one argument, the component itself.

In other words, it invokes (assume Type is the comp's z.type)
zkType.function(comp)

Parameters:
comp - the component that this script depends on. It cannot be null.
function - the function name

AuCmd

public AuCmd(Component comp,
             java.lang.String function,
             java.lang.String arg)
Construct AuCmd to call a client function with two arguments, the component itself and arg.

In other words, it invokes (assume Type is the comp's z.type)
zkType.function(comp, arg)

Parameters:
comp - the component that this script depends on. It cannot be null.
function - the function name
arg - the additional argument

AuCmd

public AuCmd(Component comp,
             java.lang.String function,
             java.lang.String arg1,
             java.lang.String arg2)
Construct AuCmd to call a client function with three arguments, the component itself, arg1 and arg2.

In other words, it invokes (assume Type is the comp's z.type)
zkType.function(comp, arg1, arg2)

Parameters:
comp - the component that this script depends on. It cannot be null.
function - the function name

AuCmd

public AuCmd(Component comp,
             java.lang.String function,
             java.lang.String arg1,
             java.lang.String arg2,
             java.lang.String arg3)
Construct AuCmd to call a client function with four arguments, the component itself, arg1, arg2 and arg3.

In other words, it invokes (assume Type is the comp's z.type)
zkType.function(comp, arg1, arg2, arg3)

Parameters:
comp - the component that this script depends on. It cannot be null.
function - the function name


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