| org.zkoss.jsf.zul.impl.AbstractComponent org.zkoss.jsf.zul.impl.RootComponent
All known Subclasses: org.zkoss.jsf.zul.Page,
RootComponent | public class RootComponent extends AbstractComponent (Code) | | A skeletal class to implement the root ZK Component.
Currently, only the page component (
org.zkoss.jsf.zul.Page )
extends from this class.
author: Dennis.Chen |
Constructor Summary | |
protected | RootComponent() protected Constructor. |
fakeOw | ResponseWriter fakeOw(Code) | | |
RootComponent | protected RootComponent()(Code) | | protected Constructor. Construct a RootTag with
LanguageDefinition = "xul/html".
|
addChildZULComponent | void addChildZULComponent(LeafComponent child)(Code) | | Adds a child ZUL Component.
|
encodeEnd | public void encodeEnd(FacesContext context) throws IOException(Code) | | Override Method,
When encodeEnd in RootComponent, all it's children ZULJSF Component has encoded,
then we start initial the ZK environment, and initial ZUL component by calling
AbstractComponent.loadZULTree of each children under RootComponent.
|
getComponentInfo | protected ComponentInfo getComponentInfo()(Code) | | Get ComponentInfo for current Component Tree.
it check a existed instance and return it, if not, a new instance will be created and return.
|
getZScriptLanguage | public String getZScriptLanguage()(Code) | | Returns the default scripting language.
|
init | protected void init(Execution exec, org.zkoss.zk.ui.Page page)(Code) | | Initializes the page.
It is called after the ZUL Page is created, and
before any ZUL Component is created.
Default: does nothing
Parameters: exec - the execution.Note: when this method is called, the execution is not activated.For example, Executions.getCurrent() returns null. Parameters: page - the page |
processZScript | public void processZScript(Component parent, ZScript zs) throws IOException(Code) | | RootComponent was supposed to handle all children's ZScript.
Parameters: parent - The owner of zscript segment. Parameters: zs - A ZScript object. throws: IOException - |
restoreState | public void restoreState(FacesContext context, Object state)(Code) | | Override Method, restore the state of this component.
|
saveState | public Object saveState(FacesContext context)(Code) | | Override Method, save the state of this component.
|
setZScriptLanguage | public void setZScriptLanguage(String lang)(Code) | | Sets the default scripting language in this RootComponent.
Default: Java.
Parameters: lang - the name of the scripting language, such asJava, Ruby and Groovy. |
setZscriptLanguage | public void setZscriptLanguage(String lang)(Code) | | Sets the default scripting language in this RootComponent.
It is the same as
RootComponent.setZScriptLanguage (used to simplify
the typing in JSF page).
|
|
|