public abstract class TemplateContext extends Object
Constructor and Description |
---|
TemplateContext() |
Modifier and Type | Method and Description |
---|---|
abstract void |
extendClient(AbstractFaceletContext actx,
AbstractFacelet owner,
TemplateClient client) |
abstract TemplateManager |
getCompositeComponentClient() |
abstract javax.el.ValueExpression |
getParameter(String key)
Return the param value expression associated to the key passed,
preserving the precedence of each template client.
|
abstract Map<String,javax.el.ValueExpression> |
getParameterMap() |
abstract boolean |
includeDefinition(FaceletContext ctx,
Facelet owner,
UIComponent parent,
String name)
This method will walk through the TemplateClient stack to resolve and
apply the definition for the passed name.
|
abstract boolean |
isAllowCacheELExpressions() |
abstract boolean |
isParameterEmpty()
Check if no parameters are set.
|
abstract TemplateManager |
popClient(AbstractFaceletContext actx)
Pop the last added pushed TemplateClient
|
abstract TemplateManager |
popExtendedClient(AbstractFaceletContext actx)
Pop the last added extended TemplateClient
|
abstract void |
pushClient(AbstractFaceletContext actx,
AbstractFacelet owner,
TemplateClient client)
Push the passed TemplateClient onto the stack for Definition Resolution
|
abstract void |
setAllowCacheELExpressions(boolean cacheELExpressions) |
abstract void |
setCompositeComponentClient(TemplateManager compositeComponentClient)
Set the composite component TemplateManager instance, used to resolve
cc:insertChildred or cc:insertFacet usages for the current template
context
|
abstract void |
setParameter(String key,
javax.el.ValueExpression value)
Associate the param to the latest template client.
|
public abstract TemplateManager popClient(AbstractFaceletContext actx)
TemplateClient
public abstract void pushClient(AbstractFaceletContext actx, AbstractFacelet owner, TemplateClient client)
client
- TemplateClient
public abstract TemplateManager popExtendedClient(AbstractFaceletContext actx)
client
- public abstract void extendClient(AbstractFaceletContext actx, AbstractFacelet owner, TemplateClient client)
public abstract boolean includeDefinition(FaceletContext ctx, Facelet owner, UIComponent parent, String name) throws IOException, FaceletException, FacesException, javax.el.ELException
parent
- the UIComponent to apply toname
- name or null of the definition you want to applyIOException
FaceletException
FacesException
javax.el.ELException
public abstract TemplateManager getCompositeComponentClient()
public abstract void setCompositeComponentClient(TemplateManager compositeComponentClient)
public abstract javax.el.ValueExpression getParameter(String key)
key
- public abstract void setParameter(String key, javax.el.ValueExpression value)
key
- public abstract boolean isParameterEmpty()
key
- public abstract Map<String,javax.el.ValueExpression> getParameterMap()
key
- public abstract boolean isAllowCacheELExpressions()
public abstract void setAllowCacheELExpressions(boolean cacheELExpressions)
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.