org.zkoss.jsf.zul.impl
Class BaseInit

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.BaseInit
All Implemented Interfaces:
javax.faces.component.StateHolder
Direct Known Subclasses:
Init

public abstract class BaseInit
extends AbstractComponent

The skeletal class used to implement the Initiator

Author:
Dennis.Chen

Field Summary
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Constructor Summary
BaseInit()
           
 
Method Summary
 void encodeEnd(javax.faces.context.FacesContext context)
          Override Method, write a special mark denoting the component in this method
 java.lang.String getUseClass()
          Returns the class name that is used to implement the Initiator Default: null
 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 setDynamicAttribute(java.util.Map map)
          Set dynamic attribute of Initiator
 void setUseClass(java.lang.String useClass)
          Sets the class that implements Initiator.
 
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, encodeBegin, 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

BaseInit

public BaseInit()
Method Detail

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext context)
               throws java.io.IOException
Override Method, write a special mark denoting the component in this method

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

getUseClass

public java.lang.String getUseClass()
Returns the class name that is used to implement the Initiator

Default: null

Returns:
the class name used to implement the ZUL Component, or null to use the default

setUseClass

public void setUseClass(java.lang.String useClass)
Sets the class that implements Initiator.

Parameters:
useClass - a class name with derived class which is implements Initiator
Throws:
java.lang.IllegalArgumentException - if input class can't be found or is not implement Initiator

setDynamicAttribute

public void setDynamicAttribute(java.util.Map map)
Set dynamic attribute of Initiator

Parameters:
map - the dynamic attributes.

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext context)
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)
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.