org.zkoss.spring.impl
Interface ZKProxy.Proxy

Enclosing class:
ZKProxy

public static interface ZKProxy.Proxy

Interface to access version-dependent features of ZK.


Method Summary
 org.zkoss.zk.ui.Component getSelf(org.zkoss.zk.ui.sys.ExecutionCtrl exec)
          Returns self of current context.
 void removeAttribute(org.zkoss.zk.ui.Execution exec, java.lang.String name)
          Removes an execution attribute.
 void removeAttribute(org.zkoss.zk.ui.Session session, java.lang.String name)
          Removes an session attribute.
 void responseSent(org.zkoss.zk.ui.sys.DesktopCtrl desktopCtrl, java.lang.String channel, java.lang.String reqId, java.lang.Object resInfo)
          Called when ZK Update Engine has sent a response to the client.
 void setAttribute(org.zkoss.zk.ui.Execution exec, java.lang.String name, java.lang.Object value)
          Sets an execution attribute.
 void setAttribute(org.zkoss.zk.ui.Session ses, java.lang.String name, java.lang.Object value)
          Sets an session attribute.
 

Method Detail

getSelf

org.zkoss.zk.ui.Component getSelf(org.zkoss.zk.ui.sys.ExecutionCtrl exec)
Returns self of current context.

Returns:
self of current context.

setAttribute

void setAttribute(org.zkoss.zk.ui.Execution exec,
                  java.lang.String name,
                  java.lang.Object value)
Sets an execution attribute.


removeAttribute

void removeAttribute(org.zkoss.zk.ui.Execution exec,
                     java.lang.String name)
Removes an execution attribute.


setAttribute

void setAttribute(org.zkoss.zk.ui.Session ses,
                  java.lang.String name,
                  java.lang.Object value)
Sets an session attribute.


removeAttribute

void removeAttribute(org.zkoss.zk.ui.Session session,
                     java.lang.String name)
Removes an session attribute.


responseSent

void responseSent(org.zkoss.zk.ui.sys.DesktopCtrl desktopCtrl,
                  java.lang.String channel,
                  java.lang.String reqId,
                  java.lang.Object resInfo)
Called when ZK Update Engine has sent a response to the client.

Note: the implementation has to maintain one last-sent response information for each channel, since a different channel has different set of request IDs and might resend in a different condition.

Parameters:
channel - the request channel. For example, "au" for AU requests and "cm" for Comet requests.
reqId - the request ID that the response is generated for. Ingore if null.
resInfo - the response infomation. Ignored if reqId is null. The real value depends on the caller.


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