Class 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:
    Serialized Form
    • 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
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      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)  
      Map<String,​Object> getAttributes()  
      String getFamily()  
      protected Object getStateProperty​(String name)  
      org.zkoss.zk.ui.Component getZKComponent()  
      protected String getZKComponentUuid()  
      org.zkoss.zk.ui.Desktop getZKDesktop()  
      protected String getZKDesktopId()  
      protected JSFComponentBase.DeadComponentHolderListener newDeadComponentHolderListener()  
      protected abstract org.zkoss.zk.ui.Component newZKComponent()  
      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)  
      Object 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
    • Constructor Detail

      • JSFComponentBase

        public JSFComponentBase()
    • Method Detail

      • 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
      • 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