public class PageRenderer extends Object implements org.zkoss.zk.ui.sys.PageRenderer
Constructor and Description |
---|
PageRenderer() |
Modifier and Type | Method and Description |
---|---|
static void |
afterRenderHtml(org.zkoss.zk.ui.Execution exec,
org.zkoss.zk.ui.Page page,
Writer out,
Object param)
Ends and cleans up the rendering of a complete ZHTML page.
|
static void |
afterRenderTag(org.zkoss.zk.ui.Execution exec,
Object param)
Ends and cleans up the rendering of a ZHTML tag.
|
static Object |
beforeRenderHtml(org.zkoss.zk.ui.Execution exec,
org.zkoss.zk.ui.Page page,
Writer out)
Prepares for rendering a complete ZHTML page.
|
static Object |
beforeRenderTag(org.zkoss.zk.ui.Execution exec)
Prepares for rendering a ZHTML tag.
|
static String |
childrenToContent(org.zkoss.zk.ui.Component comp)
Converts the children of the give component into a string-typed content, or null if no
children at all.
|
static TagRenderContext |
getTagRenderContext(org.zkoss.zk.ui.Execution exec)
Returns the render context, or null if not available.
|
void |
render(org.zkoss.zk.ui.Page page,
Writer out) |
protected void |
renderComplete(org.zkoss.zk.ui.Execution exec,
org.zkoss.zk.ui.Page page,
Writer out)
Renders the page if
Page.isComplete() is true. |
protected void |
renderPage(org.zkoss.zk.ui.Execution exec,
org.zkoss.zk.ui.Page page,
Writer out,
boolean au)
Renders the page if
Page.isComplete() is false. |
public static TagRenderContext getTagRenderContext(org.zkoss.zk.ui.Execution exec)
exec
- the execution. If null, Executions.getCurrent() is assumed.public void render(org.zkoss.zk.ui.Page page, Writer out) throws IOException
render
in interface org.zkoss.zk.ui.sys.PageRenderer
IOException
protected void renderPage(org.zkoss.zk.ui.Execution exec, org.zkoss.zk.ui.Page page, Writer out, boolean au) throws IOException
Page.isComplete()
is false.au
- whether it is caused by an asynchronous updateIOException
protected void renderComplete(org.zkoss.zk.ui.Execution exec, org.zkoss.zk.ui.Page page, Writer out) throws IOException
Page.isComplete()
is true. In other words, the page content
contains HTML/BODY tags.IOException
public static Object beforeRenderHtml(org.zkoss.zk.ui.Execution exec, org.zkoss.zk.ui.Page page, Writer out) throws 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)
.public static void afterRenderHtml(org.zkoss.zk.ui.Execution exec, org.zkoss.zk.ui.Page page, Writer out, Object param) throws IOException
param
- the value returned by beforeRenderHtml(org.zkoss.zk.ui.Execution, org.zkoss.zk.ui.Page, java.io.Writer)
.IOException
beforeRenderHtml(org.zkoss.zk.ui.Execution, org.zkoss.zk.ui.Page, java.io.Writer)
public static Object beforeRenderTag(org.zkoss.zk.ui.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(org.zkoss.zk.ui.Execution exec, Object param)
param
- the value returned by beforeRenderHtml(org.zkoss.zk.ui.Execution, org.zkoss.zk.ui.Page, java.io.Writer)
.public static String childrenToContent(org.zkoss.zk.ui.Component comp)
org.zkoss.zk.ui.UiException
- if some of the children is not ZHTML tags (i.e., not AbstractTag
).Copyright © 2019. All rights reserved.