public class CompositeComponentStackManager
extends java.lang.Object
CompositeComponentStackManager
is responsible for managing the
two different composite component stacks currently used by Mojarra.
The stacks are identified by the CompositeComponentStackManager.StackType
enum which has two elements,
TreeCreation
and
Evaluation
.
The TreeCreation
stack represents the composite components that
have been pushed by the TagHandlers responsible for building the tree.
The Evaluation
stack is used by the EL in order to properly
resolve nested composite component expressions.
Modifier and Type | Class and Description |
---|---|
private class |
CompositeComponentStackManager.BaseStackHandler |
private class |
CompositeComponentStackManager.RuntimeStackHandler |
private static interface |
CompositeComponentStackManager.StackHandler |
static class |
CompositeComponentStackManager.StackType |
private class |
CompositeComponentStackManager.TreeCreationStackHandler |
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
MANAGER_KEY |
private CompositeComponentStackManager.StackHandler |
runtime |
private CompositeComponentStackManager.StackHandler |
treeCreation |
Modifier | Constructor and Description |
---|---|
private |
CompositeComponentStackManager() |
Modifier and Type | Method and Description |
---|---|
javax.faces.component.UIComponent |
findCompositeComponentUsingLocation(javax.faces.context.FacesContext ctx,
javax.faces.view.Location location) |
static CompositeComponentStackManager |
getManager(javax.faces.context.FacesContext ctx) |
javax.faces.component.UIComponent |
getParentCompositeComponent(CompositeComponentStackManager.StackType stackType,
javax.faces.context.FacesContext ctx,
javax.faces.component.UIComponent forComponent) |
private CompositeComponentStackManager.StackHandler |
getStackHandler(CompositeComponentStackManager.StackType type) |
javax.faces.component.UIComponent |
peek() |
javax.faces.component.UIComponent |
peek(CompositeComponentStackManager.StackType stackType) |
void |
pop()
Pops the top-level component from the
Evaluation stack. |
void |
pop(CompositeComponentStackManager.StackType stackType)
Pops the top-level component from the stack.
|
boolean |
push()
Pushes a component derived by the push logic to the
Evaluation
stack. |
boolean |
push(CompositeComponentStackManager.StackType stackType)
Pushes a component derived by the push logic to the specified stack.
|
boolean |
push(javax.faces.component.UIComponent compositeComponent)
Pushes the specified composite component to the
Evaluation
stack. |
boolean |
push(javax.faces.component.UIComponent compositeComponent,
CompositeComponentStackManager.StackType stackType)
Pushes the specified composite component to the desired
StackType
stack. |
private static final java.lang.String MANAGER_KEY
private CompositeComponentStackManager.StackHandler treeCreation
private CompositeComponentStackManager.StackHandler runtime
public static CompositeComponentStackManager getManager(javax.faces.context.FacesContext ctx)
ctx
- the FacesContext
for the current requestCompositeComponentStackManager
for the current
requestpublic boolean push(javax.faces.component.UIComponent compositeComponent)
Pushes the specified composite component to the Evaluation
stack.
compositeComponent
- the component to pushtrue
if the component was pushed, otherwise
returns false
public boolean push(javax.faces.component.UIComponent compositeComponent, CompositeComponentStackManager.StackType stackType)
Pushes the specified composite component to the desired StackType
stack.
compositeComponent
- the component to pushstackType
- the stack to push to the component totrue
if the component was pushed, otherwise
returns false
public boolean push()
Pushes a component derived by the push logic to the Evaluation
stack.
true
if the component was pushed, otherwise
returns false
public boolean push(CompositeComponentStackManager.StackType stackType)
Pushes a component derived by the push logic to the specified stack.
stackType
- the stack to push to the component totrue
if the component was pushed, otherwise
returns false
public void pop(CompositeComponentStackManager.StackType stackType)
Pops the top-level component from the stack.
stackType
- the stack to pop the top level component frompublic void pop()
Pops the top-level component from the Evaluation
stack.
public javax.faces.component.UIComponent peek()
Evaluation
stack
without removing the elementpublic javax.faces.component.UIComponent peek(CompositeComponentStackManager.StackType stackType)
stackType
- the stack to push to the component topublic javax.faces.component.UIComponent getParentCompositeComponent(CompositeComponentStackManager.StackType stackType, javax.faces.context.FacesContext ctx, javax.faces.component.UIComponent forComponent)
public javax.faces.component.UIComponent findCompositeComponentUsingLocation(javax.faces.context.FacesContext ctx, javax.faces.view.Location location)
private CompositeComponentStackManager.StackHandler getStackHandler(CompositeComponentStackManager.StackType type)
Copyright © 2002-2013 Oracle America, Inc. All Rights Reserved.