Class CompositeComponentStackManager
- java.lang.Object
-
- com.sun.faces.component.CompositeComponentStackManager
-
public class CompositeComponentStackManager extends Object
CompositeComponentStackManageris responsible for managing the two different composite component stacks currently used by Mojarra.The stacks are identified by the
CompositeComponentStackManager.StackTypeenum which has two elements,TreeCreationandEvaluation.The
TreeCreationstack represents the composite components that have been pushed by the TagHandlers responsible for building the tree.The
Evaluationstack is used by the EL in order to properly resolve nested composite component expressions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCompositeComponentStackManager.StackType
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UIComponentfindCompositeComponentUsingLocation(FacesContext ctx, Location location)static CompositeComponentStackManagergetManager(FacesContext ctx)UIComponentgetParentCompositeComponent(CompositeComponentStackManager.StackType stackType, FacesContext ctx, UIComponent forComponent)UIComponentpeek()UIComponentpeek(CompositeComponentStackManager.StackType stackType)voidpop()Pops the top-level component from theEvaluationstack.voidpop(CompositeComponentStackManager.StackType stackType)Pops the top-level component from the stack.booleanpush()Pushes a component derived by the push logic to theEvaluationstack.booleanpush(CompositeComponentStackManager.StackType stackType)Pushes a component derived by the push logic to the specified stack.booleanpush(UIComponent compositeComponent)Pushes the specified composite component to theEvaluationstack.booleanpush(UIComponent compositeComponent, CompositeComponentStackManager.StackType stackType)Pushes the specified composite component to the desiredStackTypestack.
-
-
-
Method Detail
-
getManager
public static CompositeComponentStackManager getManager(FacesContext ctx)
- Parameters:
ctx- theFacesContextfor the current request- Returns:
- the
CompositeComponentStackManagerfor the current request
-
push
public boolean push(UIComponent compositeComponent)
Pushes the specified composite component to the
Evaluationstack.- Parameters:
compositeComponent- the component to push- Returns:
trueif the component was pushed, otherwise returnsfalse
-
push
public boolean push(UIComponent compositeComponent, CompositeComponentStackManager.StackType stackType)
Pushes the specified composite component to the desired
StackTypestack.- Parameters:
compositeComponent- the component to pushstackType- the stack to push to the component to- Returns:
trueif the component was pushed, otherwise returnsfalse
-
push
public boolean push()
Pushes a component derived by the push logic to the
Evaluationstack.- Returns:
trueif the component was pushed, otherwise returnsfalse
-
push
public boolean push(CompositeComponentStackManager.StackType stackType)
Pushes a component derived by the push logic to the specified stack.
- Parameters:
stackType- the stack to push to the component to- Returns:
trueif the component was pushed, otherwise returnsfalse
-
pop
public void pop(CompositeComponentStackManager.StackType stackType)
Pops the top-level component from the stack.
- Parameters:
stackType- the stack to pop the top level component from
-
pop
public void pop()
Pops the top-level component from the
Evaluationstack.
-
peek
public UIComponent peek()
- Returns:
- the top-level component from the
Evaluationstack without removing the element
-
peek
public UIComponent peek(CompositeComponentStackManager.StackType stackType)
- Parameters:
stackType- the stack to push to the component to- Returns:
- the top-level component from the specified stack without removing the element
-
getParentCompositeComponent
public UIComponent getParentCompositeComponent(CompositeComponentStackManager.StackType stackType, FacesContext ctx, UIComponent forComponent)
-
findCompositeComponentUsingLocation
public UIComponent findCompositeComponentUsingLocation(FacesContext ctx, Location location)
-
-