Class JSFComponentBase

java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
io.keikai.jsf.ui.impl.JSFComponentBase
All Implemented Interfaces:
Serializable, EventListener, javax.faces.component.PartialStateHolder, javax.faces.component.StateHolder, javax.faces.component.TransientStateHolder, javax.faces.event.ComponentSystemEventListener, javax.faces.event.FacesListener, javax.faces.event.SystemEventListenerHolder
Direct Known Subclasses:
JSFSpreadsheet

public abstract class JSFComponentBase extends javax.faces.component.UIComponentBase implements Serializable
The base of zk jsf component
Author:
Dennis
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected static class 
     
  • Field Summary

    Fields inherited from class javax.faces.component.UIComponent

    ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected static String
    appendStyle(String style, String attr, String value)
     
    protected void
    applyProperties(javax.faces.context.FacesContext context, org.zkoss.zk.ui.Component component)
     
    protected void
    applyProperty(org.zkoss.zk.ui.Component comp, String nm, Object value)
     
    protected static void
    assignProperty(org.zkoss.zk.ui.Component comp, String name, Object value)
     
    protected void
    doAfterCompose(org.zkoss.zk.ui.Component component)
     
    void
    encodeBegin(javax.faces.context.FacesContext context)
     
     
     
    protected Object
     
    org.zkoss.zk.ui.Component
     
    protected String
     
    org.zkoss.zk.ui.Desktop
     
    protected String
     
     
    protected abstract org.zkoss.zk.ui.Component
     
    void
    processUpdates(javax.faces.context.FacesContext context)
     
    protected void
    releaseResource(org.zkoss.zk.ui.Component comp)
    call back to cleanup a component resource, it is in zk execution scope
    void
    restoreState(javax.faces.context.FacesContext context, Object state)
     
    saveState(javax.faces.context.FacesContext context)
     
    void
    setValueExpression(String name, javax.el.ValueExpression binding)
     

    Methods inherited from class javax.faces.component.UIComponentBase

    addClientBehavior, addFacesListener, broadcast, clearInitialState, decode, encodeChildren, encodeEnd, findComponent, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent

    Methods inherited from class javax.faces.component.UIComponent

    encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, visitTree

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JSFComponentBase

      public JSFComponentBase()
  • Method Details

    • setValueExpression

      public void setValueExpression(String name, javax.el.ValueExpression binding)
      Overrides:
      setValueExpression in class javax.faces.component.UIComponent
    • getAttributes

      public Map<String,Object> getAttributes()
      Overrides:
      getAttributes in class javax.faces.component.UIComponentBase
    • newZKComponent

      protected abstract org.zkoss.zk.ui.Component newZKComponent()
    • getZKComponentUuid

      protected String getZKComponentUuid()
    • getZKComponent

      public org.zkoss.zk.ui.Component getZKComponent()
    • getZKDesktopId

      protected String getZKDesktopId()
    • getZKDesktop

      public org.zkoss.zk.ui.Desktop getZKDesktop()
    • encodeBegin

      public void encodeBegin(javax.faces.context.FacesContext context) throws IOException
      Overrides:
      encodeBegin in class javax.faces.component.UIComponentBase
      Throws:
      IOException
    • newDeadComponentHolderListener

      protected JSFComponentBase.DeadComponentHolderListener newDeadComponentHolderListener()
    • releaseResource

      protected void releaseResource(org.zkoss.zk.ui.Component comp)
      call back to cleanup a component resource, it is in zk execution scope
    • getStateProperty

      protected Object getStateProperty(String name)
    • applyProperties

      protected void applyProperties(javax.faces.context.FacesContext context, org.zkoss.zk.ui.Component component)
    • applyProperty

      protected void applyProperty(org.zkoss.zk.ui.Component comp, String nm, Object value)
    • assignProperty

      protected static void assignProperty(org.zkoss.zk.ui.Component comp, String name, Object value)
    • doAfterCompose

      protected void doAfterCompose(org.zkoss.zk.ui.Component component) throws Exception
      Throws:
      Exception
    • getFamily

      public String getFamily()
      Specified by:
      getFamily in class javax.faces.component.UIComponent
    • processUpdates

      public void processUpdates(javax.faces.context.FacesContext context)
      Overrides:
      processUpdates in class javax.faces.component.UIComponentBase
    • restoreState

      public void restoreState(javax.faces.context.FacesContext context, Object state)
      Specified by:
      restoreState in interface javax.faces.component.StateHolder
      Overrides:
      restoreState in class javax.faces.component.UIComponentBase
    • saveState

      public Object saveState(javax.faces.context.FacesContext context)
      Specified by:
      saveState in interface javax.faces.component.StateHolder
      Overrides:
      saveState in class javax.faces.component.UIComponentBase
    • appendStyle

      protected static String appendStyle(String style, String attr, String value)