org.zkoss.zul.au.out
Class AuPopup

java.lang.Object
  extended by org.zkoss.zk.au.AuResponse
      extended by org.zkoss.zul.au.out.AuPopup

public class AuPopup
extends AuResponse

A response to ask the client to open or to close a popup.

data[0]: the component UUID
data[1]: what operation to do. 0: close, 1: open by ref, 2: open by (x,y) data[2]: the x coordination
data[3]: the y coordination

Note: the first argument is always the component itself.

Since:
3.0.0
Author:
tomyeh

Field Summary
 
Fields inherited from class org.zkoss.zk.au.AuResponse
_cmd, _data
 
Constructor Summary
AuPopup(Component comp, boolean option)
          Constructs an instance to close the popup.
AuPopup(Component comp, Component ref)
          Constructs an instance to open the popup at specified location.
AuPopup(Component comp, java.lang.String x, java.lang.String y)
          Constructs an instance to open the popup at specified location.
 
Method Summary
 
Methods inherited from class org.zkoss.zk.au.AuResponse
equals, getCommand, getData, getDepends, getRawData, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AuPopup

public AuPopup(Component comp,
               java.lang.String x,
               java.lang.String y)
Constructs an instance to open the popup at specified location. Note: the component must implement the zkType.context JavaScript function.

Parameters:
comp - the component that this script depends on. It cannot be null.
x - the x coordination
y - the y coordination

AuPopup

public AuPopup(Component comp,
               Component ref)
Constructs an instance to open the popup at specified location. Note: the component must implement the zkType.context JavaScript function.

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

AuPopup

public AuPopup(Component comp,
               boolean option)
Constructs an instance to close the popup.

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


Copyright © 2005-2009 Potix Corporation. All Rights Reserved. SourceForge.net Logo