org.zkoss.jsf.zul.impl
Class BaseAttribute

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by org.zkoss.jsf.zul.impl.AbstractComponent
              extended by org.zkoss.jsf.zul.impl.BaseAttribute
All Implemented Interfaces:
javax.faces.component.StateHolder
Direct Known Subclasses:
Attribute

public class BaseAttribute
extends AbstractComponent

The Base implementation of Attribute. This component should be declared nested under Page.

Author:
Dennis.Chen

Field Summary
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Constructor Summary
BaseAttribute()
           
 
Method Summary
 void encodeBegin(javax.faces.context.FacesContext context)
          Override method, We Construct ZUL JSF Component tree here.
 void encodeEnd(javax.faces.context.FacesContext context)
          Override Method, write a body content to parent's attribute
 java.lang.String getName()
           
 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 setName(java.lang.String _name)
          set name of attribute.
 
Methods inherited from class org.zkoss.jsf.zul.impl.AbstractComponent
findAncestorWithClass, getBodyContent, getComponentInfo, 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

BaseAttribute

public BaseAttribute()
Method Detail

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext context)
               throws java.io.IOException
Override Method, write a body content to parent's attribute

Overrides:
encodeEnd in class javax.faces.component.UIComponentBase
Throws:
java.io.IOException
See Also:
LeafComponent.addZULDynamicAttribute(String, Object)

encodeBegin

public void encodeBegin(javax.faces.context.FacesContext context)
                 throws java.io.IOException
Override method, We Construct ZUL JSF Component tree here. This method is called by JSF implementation, deriving class rarely need to invoke this method.

Overrides:
encodeBegin in class javax.faces.component.UIComponentBase
Throws:
java.io.IOException

getName

public java.lang.String getName()
Returns:
name of attribute.

setName

public void setName(java.lang.String _name)
set name of attribute.

Parameters:
_name -

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext context)
Description copied from class: AbstractComponent
Override Method, save the state of this component.

Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class AbstractComponent

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         java.lang.Object state)
Description copied from class: AbstractComponent
Override Method, restore the state of this component.

Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class AbstractComponent


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