org.zkoss.zk.ui.sys
Interface Visualizer


public interface Visualizer

A part of Execution for visualizing the components whose visual parts are modified. There is one-to-one relationship between the visualizer and the execution.

Its implementation highly depends on UiEngine.

Author:
tomyeh

Method Summary
 boolean addToFirstAsyncUpdate(java.util.List responses)
          Adds the responses to the first Visualizer if it is caused by async-update.
 Execution getExecution()
          Returns the execution that this visualizer is associated with.
 boolean isEverAsyncUpdate()
          Whether the execution associated with this visualizer is caued by an async-update.
 boolean isRecovering()
          Returns whether it is in recovering.
 

Method Detail

getExecution

Execution getExecution()
Returns the execution that this visualizer is associated with.


isEverAsyncUpdate

boolean isEverAsyncUpdate()
Whether the execution associated with this visualizer is caued by an async-update.

Note: There might be a chain of executions. Execution.isAsyncUpdate(org.zkoss.zk.ui.Page) returns whether a page is in async-update in the execution being called, On the other hand, this method returns whether this first execution (of the whole chain) is caused by async-update.


addToFirstAsyncUpdate

boolean addToFirstAsyncUpdate(java.util.List responses)
Adds the responses to the first Visualizer if it is caused by async-update.

Returns:
true if respones are added; false if the first Visualizer is NOT caused by assync responses.

isRecovering

boolean isRecovering()
Returns whether it is in recovering. In other words, it is in the invocation of FailoverManager.recover(org.zkoss.zk.ui.Session, org.zkoss.zk.ui.Execution, org.zkoss.zk.ui.Desktop). If in recovering, no response is sent to the client.



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