Package io.keikai.jsf.ui.impl
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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
JSFComponentBase.DeadComponentHolderListener
-
Constructor Summary
Constructors Constructor Description JSFComponentBase()
-
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 scopevoid
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
-
-
-
-
Method Detail
-
setValueExpression
public void setValueExpression(String name, javax.el.ValueExpression binding)
- Overrides:
setValueExpression
in classjavax.faces.component.UIComponent
-
getAttributes
public Map<String,Object> getAttributes()
- Overrides:
getAttributes
in classjavax.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 classjavax.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
-
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 classjavax.faces.component.UIComponent
-
processUpdates
public void processUpdates(javax.faces.context.FacesContext context)
- Overrides:
processUpdates
in classjavax.faces.component.UIComponentBase
-
restoreState
public void restoreState(javax.faces.context.FacesContext context, Object state)
- Specified by:
restoreState
in interfacejavax.faces.component.StateHolder
- Overrides:
restoreState
in classjavax.faces.component.UIComponentBase
-
saveState
public Object saveState(javax.faces.context.FacesContext context)
- Specified by:
saveState
in interfacejavax.faces.component.StateHolder
- Overrides:
saveState
in classjavax.faces.component.UIComponentBase
-
-