public class FullVisitContext extends VisitContext
A VisitContext implementation that is used when performing a full component tree visit.
RELEASE_PENDINGALL_IDS| Constructor and Description |
|---|
FullVisitContext(FacesContext facesContext)
Creates a FullVisitorContext instance.
|
FullVisitContext(FacesContext facesContext,
Set<VisitHint> hints)
Creates a FullVisitorContext instance with the specified hints.
|
| Modifier and Type | Method and Description |
|---|---|
FacesContext |
getFacesContext()
Returns the FacesContext for the current request. |
Set<VisitHint> |
getHints()
Returns hints that influence the behavior of the tree visit.
|
Collection<String> |
getIdsToVisit()
Returns the ids of the components to visit. |
Collection<String> |
getSubtreeIdsToVisit(UIComponent component)
Given a |
VisitResult |
invokeVisitCallback(UIComponent component,
VisitCallback callback)
Called by
UIComponent.visitTree() to visit a single component. |
createVisitContext, createVisitContextpublic FullVisitContext(FacesContext facesContext)
facesContext - the FacesContext for the current requestNullPointerException - if facesContext is nullpublic FullVisitContext(FacesContext facesContext, Set<VisitHint> hints)
facesContext - the FacesContext for the current requesthints - a the VisitHints for this visitNullPointerException - if facesContext is nullpublic FacesContext getFacesContext()
VisitContextReturns the FacesContext for the current request.
getFacesContext in class VisitContextVisitContext.getFacesContext()public Collection<String> getIdsToVisit()
VisitContextReturns the ids of the components to visit.
In the case of a full tree visit, this method returns the ALL_IDS collection. Otherwise, if a partial visit is beign performed, returns a modifiable collection containing the client ids of the components that should be visited.
getIdsToVisit in class VisitContextVisitContext.getIdsToVisit()public Collection<String> getSubtreeIdsToVisit(UIComponent component)
VisitContext
Given a NamingContainer component, returns the client ids of any components
underneath the NamingContainer that should be visited.
This method is called by NamingContainer visitTree() implementations to determine whether the NamingContainer contains components to be visited. In the case where no such components exist, the NamingContainer can short-circuit the tree visit and avoid descending into child subtrees.
In addition, iterating components such as UIData may be able to use the returned ids to determine which iterated states (ie. rows) need to be visited. This allows the visit traversal to be contstrained such only those rows that contain visit targets need to be traversed.
getSubtreeIdsToVisit in class VisitContextcomponent - a NamingContainer componentVisitContext.ALL_IDS collection.VisitContext.getSubtreeIdsToVisit()public Set<VisitHint> getHints()
VisitContextReturns hints that influence the behavior of the tree visit.
Interested parties, such as UIComponent.visitTree() implementations, may check to see
whether a particular hint is present by calling VisitContext.getHints().contains(), passing in one of the
hints defined by VisitHint.
getHints in class VisitContextVisitContext.getHintspublic VisitResult invokeVisitCallback(UIComponent component, VisitCallback callback)
VisitContext
Called by UIComponent.visitTree() to visit a single component.
invokeVisitCallback in class VisitContextcomponent - the component to visitcallback - the VisitCallback to callVisitContext.invokeVisitCallback()Copyright © 1997–2020 Eclipse Foundation. All rights reserved.