public class UIViewRoot extends UIComponentBase
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_FAMILY |
static String |
COMPONENT_TYPE |
static String |
UNIQUE_ID_PREFIX |
bindings
Constructor and Description |
---|
UIViewRoot()
Construct an instance of the UIViewRoot.
|
Modifier and Type | Method and Description |
---|---|
void |
addPhaseListener(PhaseListener phaseListener)
Adds a The phaseListeners attached to ViewRoot.
|
String |
createUniqueId() |
void |
encodeBegin(FacesContext context) |
void |
encodeEnd(FacesContext context) |
javax.el.MethodExpression |
getAfterPhaseListener()
Gets
|
javax.el.MethodExpression |
getBeforePhaseListener()
Gets
|
String |
getFamily() |
Locale |
getLocale()
Gets The locale for this ViewRoot.
|
String |
getRenderKitId()
Gets The initial value of this component.
|
String |
getViewId()
Gets The viewId.
|
void |
processApplication(FacesContext context) |
void |
processDecodes(FacesContext context) |
void |
processUpdates(FacesContext context)
This isn't an input component, so just pass on the processUpdates
call to child components and facets that might be input components.
|
void |
processValidators(FacesContext context) |
void |
queueEvent(FacesEvent event) |
void |
removePhaseListener(PhaseListener phaseListener)
Removes a The phaseListeners attached to ViewRoot.
|
void |
restoreState(FacesContext facesContext,
Object state)
Invoked in the "restore view" phase, this initialises this
object's members from the values saved previously into the
provided state object.
|
Object |
saveState(FacesContext facesContext)
Invoked after the render phase has completed, this method
returns an object which can be passed to the restoreState
of some other instance of UIComponentBase to reset that
object's state to the same values as this object currently
has.
|
void |
setAfterPhaseListener(javax.el.MethodExpression afterPhaseListener)
Sets
|
void |
setBeforePhaseListener(javax.el.MethodExpression beforePhaseListener)
Sets
|
void |
setLocale(Locale locale)
Sets The locale for this ViewRoot.
|
void |
setRenderKitId(String renderKitId)
Sets The initial value of this component.
|
void |
setViewId(String viewId)
Sets The viewId.
|
addFacesListener, broadcast, decode, encodeChildren, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
encodeAll, getContainerClientId, getValueExpression, setValueExpression
public static final String COMPONENT_FAMILY
public static final String COMPONENT_TYPE
public static final String UNIQUE_ID_PREFIX
public void queueEvent(FacesEvent event)
queueEvent
in class UIComponentBase
public void processDecodes(FacesContext context)
processDecodes
in class UIComponentBase
public void processValidators(FacesContext context)
processValidators
in class UIComponentBase
public void processUpdates(FacesContext context)
UIComponentBase
Components that were never rendered can't possibly be receiving update data (no corresponding fields were ever put into the response) so if this component is not rendered then this method does not invoke processUpdates on its children.
processUpdates
in class UIComponentBase
public void processApplication(FacesContext context)
public void encodeBegin(FacesContext context) throws IOException
encodeBegin
in class UIComponentBase
IOException
public void encodeEnd(FacesContext context) throws IOException
encodeEnd
in class UIComponentBase
IOException
public String createUniqueId()
public Locale getLocale()
public void setLocale(Locale locale)
locale
- the new locale valuepublic String getRenderKitId()
public void setRenderKitId(String renderKitId)
renderKitId
- the new renderKitId valuepublic String getViewId()
public void setViewId(String viewId)
viewId
- the new viewId valuepublic void addPhaseListener(PhaseListener phaseListener)
public void removePhaseListener(PhaseListener phaseListener)
public javax.el.MethodExpression getBeforePhaseListener()
public void setBeforePhaseListener(javax.el.MethodExpression beforePhaseListener)
beforePhaseListener
- the new beforePhaseListener valuepublic javax.el.MethodExpression getAfterPhaseListener()
public void setAfterPhaseListener(javax.el.MethodExpression afterPhaseListener)
afterPhaseListener
- the new afterPhaseListener valuepublic Object saveState(FacesContext facesContext)
UIComponentBase
saveState
in interface StateHolder
saveState
in class UIComponentBase
public void restoreState(FacesContext facesContext, Object state)
UIComponentBase
restoreState
in interface StateHolder
restoreState
in class UIComponentBase
state
- is an object previously returned by
the saveState method of this class.public String getFamily()
getFamily
in class UIComponent
Copyright © 2013 Apache Software Foundation. All Rights Reserved.