A VisitContext implementation that is used when performing a partial component tree visit.
RELEASE_PENDING| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private Collection | |
| private FacesContext | |
| private Set | |
| private Collection | |
| private Map | |
| private Collection |
| Access | Constructor and Description |
|---|---|
| public | PartialVisitContext(FacesContext
the FacesContext for the current request facesContext, Collection<String> the client ids of the components to visit clientIds)Creates a PartialVisitorContext instance. |
| public | PartialVisitContext(FacesContext
the FacesContext for the current request facesContext, Collection<String> the client ids of the components to visit clientIds, Set<VisitHint> a the VisitHints for this visit hints)Creates a PartialVisitorContext instance with the specified hints. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public FacesContext | getFacesContext()
Implements abstract javax. Returns the FacesContext for the current request. |
| public Set | getHints()
Implements abstract javax. Returns hints that influence the behavior of the tree visit. |
| private String | |
| public Collection | getIdsToVisit()
Implements abstract javax. Returns the ids of the components to visit. |
| public Collection | getSubtreeIdsToVisit(UIComponent
a NamingContainer component component)Implements abstract javax. Given a |
| public Collection | |
| private String | |
| private void | |
| private void | |
| private void | |
| public VisitResult | invokeVisitCallback(UIComponent
the component to visit component, VisitCallback the VisitCallback to call callback)Implements abstract javax. Called by |
| private void |
| clientIds | back to summary |
|---|---|
| private Collection<String> clientIds | |
| facesContext | back to summary |
|---|---|
| private FacesContext facesContext | |
| hints | back to summary |
|---|---|
| private Set<VisitHint> hints | |
| ids | back to summary |
|---|---|
| private Collection<String> ids | |
| subtreeClientIds | back to summary |
|---|---|
| private Map<String, Collection<String>> subtreeClientIds | |
| unvisitedClientIds | back to summary |
|---|---|
| private Collection<String> unvisitedClientIds | |
| PartialVisitContext | back to summary |
|---|---|
| public PartialVisitContext(FacesContext facesContext, Collection<String> clientIds) Creates a PartialVisitorContext instance.
| |
| PartialVisitContext | back to summary |
|---|---|
| public PartialVisitContext(FacesContext facesContext, Collection<String> clientIds, Set<VisitHint> hints) Creates a PartialVisitorContext instance with the specified hints.
| |
| addSubtreeClientId | back to summary |
|---|---|
| private void addSubtreeClientId(String clientId) | |
| getFacesContext | back to summary |
|---|---|
| public FacesContext getFacesContext() Implements abstract javax. Doc from javax. Returns the FacesContext for the current request.
| |
| getHints | back to summary |
|---|---|
| public Set Implements abstract javax. Doc from javax. Returns hints that influence the behavior of the tree visit. Interested parties, such as
| |
| getIdFromClientId | back to summary |
|---|---|
| private String getIdFromClientId(String clientId) | |
| getIdsToVisit | back to summary |
|---|---|
| public Collection Implements abstract javax. Doc from javax. 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 Collection Implements abstract javax. Doc from javax. 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.
| |
| getUnvisitedClientIds | back to summary |
|---|---|
| public Collection | |
| getVisitId | back to summary |
|---|---|
| private String getVisitId(UIComponent component) | |
| idAdded | back to summary |
|---|---|
| private void idAdded(String clientId) | |
| idRemoved | back to summary |
|---|---|
| private void idRemoved(String clientId) | |
| initializeCollections | back to summary |
|---|---|
| private void initializeCollections(Collection<String> clientIds) | |
| invokeVisitCallback | back to summary |
|---|---|
| public VisitResult invokeVisitCallback(UIComponent component, VisitCallback callback) Implements abstract javax. Doc from javax. Called by
| |
| removeSubtreeClientId | back to summary |
|---|---|
| private void removeSubtreeClientId(String clientId) | |
| Modifier and Type | Field and Description |
|---|---|
| private Collection |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(E
element whose presence in this collection is to be ensured o)Overrides java. Implements java. |
| public Iterator | iterator()
Implements abstract java. Implements java. |
| public int | size()
Implements abstract java. Implements java. |
| wrapped | back to summary |
|---|---|
| private Collection<E> wrapped | |
| CollectionProxy | back to summary |
|---|---|
| private CollectionProxy(Collection<E> wrapped) | |
| add | back to summary |
|---|---|
| public boolean add(E o) Overrides java. Implements java. Doc from java. Ensures that this collection contains the specified element (optional
operation). Returns
Collections that support this operation may place limitations on what
elements may be added to this collection. In particular, some
collections will refuse to add
If a collection refuses to add a particular element for any reason
other than that it already contains the element, it must throw
an exception (rather than returning
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements abstract java. Implements java. Doc from java. Returns an iterator over the elements contained in this collection. | |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this collection. If this collection
contains more than
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public E | |
| public void | remove()
Overrides default java. |
| current | back to summary |
|---|---|
| private E current | |
| wrapped | back to summary |
|---|---|
| private Iterator<E> wrapped | |
| IteratorProxy | back to summary |
|---|---|
| private IteratorProxy(Iterator<E> wrapped) | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public E next() Implements java. Doc from java. Returns the next element in the iteration.
| |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the
| |