org.zkoss.jsp.zul
Class PageTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.SimpleTagSupport
      extended by org.zkoss.jsp.zul.impl.AbstractTag
          extended by org.zkoss.jsp.zul.impl.RootTag
              extended by org.zkoss.jsp.zul.PageTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag

public class PageTag
extends RootTag

Defines a ZK page. It is reponsible for doing the lifecycle for ZK components, such as event processing and rendering,

All other ZK tags must be placed inside a PageTag tag. Nested page tags are not allowed.

Author:
tomyeh

Constructor Summary
PageTag()
           
 
Method Summary
 java.lang.String getId()
          if not set before, ZK will generate one for this.
 java.lang.String getStyle()
          Returns the style.
protected  void init(org.zkoss.zk.ui.Execution exec, org.zkoss.zk.ui.Page page)
          Creates and returns the page.
 void setId(java.lang.String id)
          if not set before, ZK will generate one for this.
 void setStyle(java.lang.String style)
          Sets the style.
 
Methods inherited from class org.zkoss.jsp.zul.impl.RootTag
addChildTag, doTag, getPage, getZScriptLanguage, processZScript, setZscriptLanguage, setZScriptLanguage
 
Methods inherited from class org.zkoss.jsp.zul.impl.AbstractTag
getIf, getUnless, isEffective, setIf, setUnless
 
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageTag

public PageTag()
Method Detail

getStyle

public java.lang.String getStyle()
Returns the style. Default: null (no style at all).


setStyle

public void setStyle(java.lang.String style)
Sets the style.


getId

public java.lang.String getId()
if not set before, ZK will generate one for this.

Returns:
this page id.

setId

public void setId(java.lang.String id)
if not set before, ZK will generate one for this.

Parameters:
id -

init

protected void init(org.zkoss.zk.ui.Execution exec,
                    org.zkoss.zk.ui.Page page)
Creates and returns the page.

Overrides:
init in class RootTag
Parameters:
exec - the execution. Note: when this method is called, the execution is not activated. For example, Executions.getCurrent() returns null.
page - the page


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