|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.faces.component.UIComponent javax.faces.component.UIComponentBase com.sun.rave.web.ui.component.TemplateComponentBase
This abstract class provides base functionality for components that
work in conjunction with the
TemplateRenderer
. It
provides a default implementation of the TemplateComponent
interface.
TemplateRenderer
,
TemplateComponent
Field Summary |
Fields inherited from interface javax.faces.component.NamingContainer |
SEPARATOR_CHAR |
Constructor Summary | |
TemplateComponentBase()
|
Method Summary | |
javax.faces.component.UIComponent |
getChild(javax.faces.context.FacesContext context,
com.sun.rave.web.ui.component.util.descriptors.LayoutComponent descriptor)
This method will find the request child UIComponent by id (the id is obtained from the given LayoutComponent). |
javax.faces.component.UIComponent |
getChild(javax.faces.context.FacesContext context,
java.lang.String id)
This method will find the request child UIComponent by id. |
com.sun.rave.web.ui.component.util.descriptors.LayoutDefinition |
getLayoutDefinition(javax.faces.context.FacesContext context)
This method returns the LayoutDefinition associated with this component. |
java.lang.String |
getLayoutDefinitionKey()
This method returns the LayoutDefinitionKey for this component. |
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
This method restores the state for this component. |
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
This method saves the state for this component. |
void |
setLayoutDefinitionKey(java.lang.String key)
This method sets the LayoutDefinition key for this component. |
Methods inherited from class javax.faces.component.UIComponentBase |
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, 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 |
getFamily |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TemplateComponentBase()
Method Detail |
public javax.faces.component.UIComponent getChild(javax.faces.context.FacesContext context, java.lang.String id)
getChild
in interface TemplateComponent
context
- The FacesContextid
- The UIComponent id to search for
public javax.faces.component.UIComponent getChild(javax.faces.context.FacesContext context, com.sun.rave.web.ui.component.util.descriptors.LayoutComponent descriptor)
getChild
in interface ChildManager
descriptor
- The LayoutElement describing the UIComponentcontext
- FacesContext
public com.sun.rave.web.ui.component.util.descriptors.LayoutDefinition getLayoutDefinition(javax.faces.context.FacesContext context)
getLayoutDefinition
in interface TemplateComponent
context
- The FacesContext
public java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState
in interface javax.faces.component.StateHolder
context
- The FacesContext
public void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
restoreState
in interface javax.faces.component.StateHolder
context
- The FacesContextstate
- The serialized Statepublic java.lang.String getLayoutDefinitionKey()
getLayoutDefinitionKey
in interface TemplateComponent
public void setLayoutDefinitionKey(java.lang.String key)
setLayoutDefinitionKey
in interface TemplateComponent
key
- The key to use in the LayoutDefinitionManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |