A context object that is used to hold state relating to performing a component tree visit.
Component tree visits are initiated by calling UIComponent#visitTree, at which point both a
VisitContext and a VisitCallback must be provided.
UIComponent.visitTree(), VisitCallback
| Modifier and Type | Field and Description |
|---|---|
| public static final Collection | ALL_IDS
This unmodifiable Collection is returned by |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static VisitContext | Returns: a VisitContext instance that is initialized with the specified ids and hints.the FacesContext for the current request context, Collection<String> the client ids of the components to visit. If null, all components will be visited. ids, Set<VisitHint> the VisitHints to apply to the visit. If hints)null, no hints are applied.
Returns a VisitContext instance that is initialized with the specified ids and hintsfor use with
|
| public static VisitContext | Returns: a VisitContext instancethe FacesContext for the current request context)
Creates a VisitContext instance for use with |
| public abstract FacesContext | |
| public abstract Set | Returns: a non-empty, unmodifiable collection of VisitHintsReturns hints that influence the behavior of the tree visit. |
| public abstract Collection | Returns: the ids of the components to visitReturns the ids of the components to visit. |
| public abstract Collection | Returns: an unmodifiable Collection containing the client ids of any components underneath the NamingContainer that are known to be targets of the tree visit. If no such components exist, returns an empty Collection. If all components underneath the NamingContainer should be visited, returns theVisitContext.ALL_IDS collection.a NamingContainer component component)
Given a |
| public abstract VisitResult | Returns: a VisitResult value that indicates whether to continue visiting the component's subtree, skip visiting the component's subtree or abort the visit altogether.the component to visit component, VisitCallback the VisitCallback to call callback)
Called by |
| ALL_IDS | back to summary |
|---|---|
| public static final Collection<String> ALL_IDS
This unmodifiable Collection is returned by
To simplify logic for
| |
| VisitContext | back to summary |
|---|---|
| public VisitContext() | |
| createVisitContext | back to summary |
|---|---|
| public static VisitContext createVisitContext(FacesContext context, Collection<String> ids, Set<VisitHint> hints)
Returns a VisitContext instance that is initialized with the specified ids and hintsfor use with
| |
| createVisitContext | back to summary |
|---|---|
| public static VisitContext createVisitContext(FacesContext context)
Creates a VisitContext instance for use with
| |
| getFacesContext | back to summary |
|---|---|
| public abstract FacesContext getFacesContext() Returns the FacesContext for the current request.
| |
| getHints | back to summary |
|---|---|
| public abstract Set Returns hints that influence the behavior of the tree visit.
Interested parties, such as | |
| getIdsToVisit | back to summary |
|---|---|
| public abstract Collection Returns 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.
| |
| getSubtreeIdsToVisit | back to summary |
|---|---|
| public abstract Collection
Given a 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.
| |
| invokeVisitCallback | back to summary |
|---|---|
| public abstract VisitResult invokeVisitCallback(UIComponent component, VisitCallback callback)
Called by
| |