|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
org.zkoss.jsf.zul.impl.AbstractComponent
org.zkoss.jsf.zul.impl.RootComponent
public class RootComponent
A skeletal class to implement the root ZK Component.
Currently, only the page component (Page)
extends from this class.
| Field Summary |
|---|
| Fields inherited from class javax.faces.component.UIComponent |
|---|
bindings |
| Constructor Summary | |
|---|---|
protected |
RootComponent()
protected Constructor. |
| Method Summary | |
|---|---|
void |
encodeBegin(javax.faces.context.FacesContext context)
|
void |
encodeEnd(javax.faces.context.FacesContext context)
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(org.zkoss.zk.ui.Page, java.io.StringWriter) of each children under RootComponent. |
protected org.zkoss.jsf.zul.impl.ComponentInfo |
getComponentInfo()
Get ComponentInfo for current Component Tree. |
java.lang.String |
getZScriptLanguage()
Returns the default scripting language. |
protected void |
init(org.zkoss.zk.ui.Execution exec,
org.zkoss.zk.ui.Page page)
Initializes the page. |
void |
processZScript(org.zkoss.zk.ui.Component parent,
org.zkoss.zk.ui.metainfo.ZScript zs)
RootComponent was supposed to handle all children's ZScript. |
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
Override Method, restore the state of this component. |
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
Override Method, save the state of this component. |
void |
setZscriptLanguage(java.lang.String lang)
Sets the default scripting language in this RootComponent. |
void |
setZScriptLanguage(java.lang.String lang)
Sets the default scripting language in this RootComponent. |
| Methods inherited from class org.zkoss.jsf.zul.impl.AbstractComponent |
|---|
findAncestorWithClass, getBodyContent, getFacesContext, getFamily, getIf, getUnless, isEffective, isSuppressed, loadZULTree, restoreAttachedMapState, saveAttachedMapState, setBodyContent, setIf, setSuppressed, setUnless |
| Methods inherited from class javax.faces.component.UIComponentBase |
|---|
addFacesListener, broadcast, decode, encodeChildren, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding |
| Methods inherited from class javax.faces.component.UIComponent |
|---|
encodeAll, getContainerClientId, getValueExpression, setValueExpression |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected RootComponent()
| Method Detail |
|---|
public java.lang.String getZScriptLanguage()
public void setZScriptLanguage(java.lang.String lang)
Default: Java.
lang - the name of the scripting language, such as
Java, Ruby and Groovy.public void setZscriptLanguage(java.lang.String lang)
setZScriptLanguage(java.lang.String) (used to simplify
the typing in JSF page).
protected org.zkoss.jsf.zul.impl.ComponentInfo getComponentInfo()
getComponentInfo in class AbstractComponent
protected void init(org.zkoss.zk.ui.Execution exec,
org.zkoss.zk.ui.Page page)
Default: does nothing
exec - the execution.
Note: when this method is called, the execution is not activated.
For example, Executions.getCurrent() returns null.page - the page
public void processZScript(org.zkoss.zk.ui.Component parent,
org.zkoss.zk.ui.metainfo.ZScript zs)
throws java.io.IOException
parent - The owner of zscript segment.zs - A ZScript object.
java.io.IOException
public void encodeBegin(javax.faces.context.FacesContext context)
throws java.io.IOException
encodeBegin in class javax.faces.component.UIComponentBasejava.io.IOException
public void encodeEnd(javax.faces.context.FacesContext context)
throws java.io.IOException
AbstractComponent.loadZULTree(org.zkoss.zk.ui.Page, java.io.StringWriter) of each children under RootComponent.
encodeEnd in class javax.faces.component.UIComponentBasejava.io.IOExceptionpublic java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState in interface javax.faces.component.StateHoldersaveState in class AbstractComponent
public void restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
restoreState in interface javax.faces.component.StateHolderrestoreState in class AbstractComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||