|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zk.ui.sys.ComponentRedraws
public class ComponentRedraws
Utilities to implement ComponentCtrl.redraw(java.io.Writer)
.
Like HtmlPageRenders.getRenderContext(org.zkoss.zk.ui.Execution)
, they are used to simplify
the implementation of the component rendering. However, there are
some differences:
beforeRedraw(boolean)
and afterRedraw()
can be called
even without an execution (e.g., in a working thread).
Constructor Summary | |
---|---|
ComponentRedraws()
|
Method Summary | |
---|---|
static java.lang.String |
afterRedraw()
Called after finishing the redrawing. |
static int |
beforeRedraw(boolean includingPage)
Called before staring the redrawing. |
static java.io.Writer |
getScriptBuffer()
Returns the string buffer for the snippet that shall be generated after rendering the components. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentRedraws()
Method Detail |
---|
public static final int beforeRedraw(boolean includingPage)
AbstractComponent.redraw(java.io.Writer)
calls this method
before calling AbstractComponent.renderProperties(org.zkoss.zk.ui.sys.ContentRenderer)
and AbstractComponent.redrawChildren(java.io.Writer)
.
If this method is called, afterRedraw()
must be called in
the finally clause:
ComponentRedraws.beforeRedraw(false);
try {
...
} finally {
ComponentRedraws.afterRedraw();
}
includingPage
- whether this invocation is caused to include a new page.
Unless for implementing an include component, this parameter shall be false.
ComponentCtrl.redraw(java.io.Writer)
is called against.public static final java.io.Writer getScriptBuffer()
afterRedraw()
if it is called against
the top-level component.
public static final java.lang.String afterRedraw()
beforeRedraw(boolean)
is called.
getScriptBuffer()
and
append the snippet into the returned string buffer.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |