|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zhtml.impl.PageRenderer
public class PageRenderer
The page render for ZHTML pages.
| Constructor Summary | |
|---|---|
PageRenderer()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PageRenderer()
| Method Detail |
|---|
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 PageRendererout - 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 update
java.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.IOExceptionafterRenderHtml(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.IOExceptionbeforeRenderHtml(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).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||