|
||||||||||
| 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
public class AbstractComponent
The skeletal class for implementing the generic ZULJSF Component.
This component handle _if, _unless attributes of ZUL Component.
This component also handle bodyContent which is set by AbstractTag.doAfterBody()
| Field Summary |
|---|
| Fields inherited from class javax.faces.component.UIComponent |
|---|
bindings |
| Constructor Summary | |
|---|---|
AbstractComponent()
|
|
| Method Summary | |
|---|---|
protected javax.faces.component.UIComponent |
findAncestorWithClass(javax.faces.component.UIComponent component,
java.lang.Class clazz)
A convenient method for finding ancestor of special class. |
protected java.lang.String |
getBodyContent()
get the body content of this ZULJSF Component. |
protected org.zkoss.jsf.zul.impl.ComponentInfo |
getComponentInfo()
Get ComponentInfo for current Component Tree. |
javax.faces.context.FacesContext |
getFacesContext()
get current FacesContext for this component, this method is protected in super class, I public it for convenient usage. |
java.lang.String |
getFamily()
get Component Family of ZULJSF Component. |
boolean |
getIf()
Returns the if condition. |
boolean |
getUnless()
Returns the unless condition. |
boolean |
isEffective()
Returns whether this component is effective. |
protected boolean |
isSuppressed()
Return true if rendering should be suppressed because
of any of the follow reasons. |
protected void |
loadZULTree(org.zkoss.zk.ui.Page page,
java.io.StringWriter writer)
Call by RootComponent or BranchComponent to load tree structure of zk zul components. |
protected static java.util.Map |
restoreAttachedMapState(javax.faces.context.FacesContext context,
java.lang.Object keys,
java.lang.Object values)
a convenient to restore the state of a Map. |
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
Override Method, restore the state of this component. |
protected static java.lang.Object[] |
saveAttachedMapState(javax.faces.context.FacesContext context,
java.util.Map mapObject)
a convenient to save the state of a Map. |
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
Override Method, save the state of this component. |
void |
setBodyContent(java.lang.String content)
Set BodyContnet, this method is called by AbstractTag to setup JSP Body
Content, developer rarely call this method. |
void |
setIf(boolean ifcond)
Sets the if condition. |
void |
setSuppressed(boolean suppressed)
set suppressed by AbstractTag only, developer should not call this method. |
void |
setUnless(boolean unless)
Sets the unless condition. |
| Methods inherited from class javax.faces.component.UIComponentBase |
|---|
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, 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 |
|---|
public AbstractComponent()
| Method Detail |
|---|
public boolean isEffective()
public boolean getIf()
getUnless()) is true, this
component is ignored, too. Components deriving from this class shall
invoke isEffective() to know the result.
Default: true.
public void setIf(boolean ifcond)
public boolean getUnless()
getIf()) is true,
this component is ignored, too. Components deriving from this class shall
invoke isEffective() to know the result.
Default: false.
public void setUnless(boolean unless)
public java.lang.String getFamily()
getFamily in class javax.faces.component.UIComponent
protected javax.faces.component.UIComponent findAncestorWithClass(javax.faces.component.UIComponent component,
java.lang.Class clazz)
component - a component, usually a AbstractComponent instanceclazz - a class, usually a AbstractComponent class
protected void loadZULTree(org.zkoss.zk.ui.Page page,
java.io.StringWriter writer)
throws java.io.IOException
java.io.IOExceptionpublic void setBodyContent(java.lang.String content)
AbstractTag to setup JSP Body
Content, developer rarely call this method.
content - content of this componentprotected java.lang.String getBodyContent()
public javax.faces.context.FacesContext getFacesContext()
getFacesContext in class javax.faces.component.UIComponentBaseprotected org.zkoss.jsf.zul.impl.ComponentInfo getComponentInfo()
public java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState in interface javax.faces.component.StateHoldersaveState in class javax.faces.component.UIComponentBase
public void restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
restoreState in interface javax.faces.component.StateHolderrestoreState in class javax.faces.component.UIComponentBase
protected static java.lang.Object[] saveAttachedMapState(javax.faces.context.FacesContext context,
java.util.Map mapObject)
context - FacesContextmapObject - a Map to save
protected static java.util.Map restoreAttachedMapState(javax.faces.context.FacesContext context,
java.lang.Object keys,
java.lang.Object values)
context - FacesContextkeys - a Object which is create by saveAttachedMapState(javax.faces.context.FacesContext, java.util.Map)[0]values - a Object which is create by saveAttachedMapState(javax.faces.context.FacesContext, java.util.Map)[1]
protected boolean isSuppressed()
Return true if rendering should be suppressed because
of any of the follow reasons.
rendered property set
to false.rendersChildren is true.
public void setSuppressed(boolean suppressed)
AbstractTag only, developer should not call this method.
suppressed -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||