public class PageRenderer extends java.lang.Object implements PageRenderer
Constructor and Description |
---|
PageRenderer() |
Modifier and Type | Method and Description |
---|---|
static void |
afterRenderHtml(Execution exec,
Page page,
java.io.Writer out,
java.lang.Object param)
Ends and cleans up the rendering of a complete ZHTML page.
|
static void |
afterRenderTag(Execution exec,
java.lang.Object param)
Ends and cleans up the rendering of a ZHTML tag.
|
static java.lang.Object |
beforeRenderHtml(Execution exec,
Page page,
java.io.Writer out)
Prepares for rendering a complete ZHTML page.
|
static java.lang.Object |
beforeRenderTag(Execution exec)
Prepares for rendering a ZHTML tag.
|
static java.lang.String |
childrenToContent(Component comp)
Converts the children of the give component into a string-typed content,
or null if no children at all.
|
static TagRenderContext |
getTagRenderContext(Execution exec)
Returns the render context, or null if not available.
|
void |
render(Page page,
java.io.Writer out)
Renders the page.
|
protected void |
renderComplete(Execution exec,
Page page,
java.io.Writer out)
Renders the page if
Page.isComplete() is true. |
protected void |
renderPage(Execution exec,
Page page,
java.io.Writer out,
boolean au)
Renders the page if
Page.isComplete() is false. |
public static TagRenderContext getTagRenderContext(Execution exec)
exec
- the execution. If null, Executions.getCurrent() is assumed.public void render(Page page, java.io.Writer out) throws java.io.IOException
PageRenderer
render
in interface PageRenderer
out
- the output writer to put the content to (never null).java.io.IOException
protected void renderPage(Execution exec, Page page, java.io.Writer out, boolean au) throws java.io.IOException
Page.isComplete()
is false.au
- whether it is caused by an asynchronous updatejava.io.IOException
protected void renderComplete(Execution exec, Page page, java.io.Writer out) throws java.io.IOException
Page.isComplete()
is true.
In other words, the page content contains HTML/BODY tags.java.io.IOException
public static java.lang.Object beforeRenderHtml(Execution exec, Page page, java.io.Writer out) throws java.io.IOException
afterRenderHtml(org.zkoss.zk.ui.Execution, org.zkoss.zk.ui.Page, java.io.Writer, java.lang.Object)
.
Furthermore, the return value of this method shall be passed as
the param
argument of afterRenderHtml(org.zkoss.zk.ui.Execution, org.zkoss.zk.ui.Page, java.io.Writer, java.lang.Object)
.java.io.IOException
afterRenderHtml(org.zkoss.zk.ui.Execution, org.zkoss.zk.ui.Page, java.io.Writer, java.lang.Object)
public static void afterRenderHtml(Execution exec, Page page, java.io.Writer out, java.lang.Object param) throws java.io.IOException
param
- the value returned by beforeRenderHtml(org.zkoss.zk.ui.Execution, org.zkoss.zk.ui.Page, java.io.Writer)
.java.io.IOException
beforeRenderHtml(org.zkoss.zk.ui.Execution, org.zkoss.zk.ui.Page, java.io.Writer)
public static java.lang.Object beforeRenderTag(Execution exec)
afterRenderTag(org.zkoss.zk.ui.Execution, java.lang.Object)
.
Furthermore, the return value of this method shall be passed as
the param
argument of afterRenderTag(org.zkoss.zk.ui.Execution, java.lang.Object)
.param
argument of afterRenderTag(org.zkoss.zk.ui.Execution, java.lang.Object)
.afterRenderTag(org.zkoss.zk.ui.Execution, java.lang.Object)
public static void afterRenderTag(Execution exec, java.lang.Object param)
param
- the value returned by beforeRenderHtml(org.zkoss.zk.ui.Execution, org.zkoss.zk.ui.Page, java.io.Writer)
.public static java.lang.String childrenToContent(Component comp)
UiException
- if some of the children is not ZHTML tags
(i.e., not AbstractTag
).Copyright © 2005-2011 Potix Corporation. All Rights Reserved.