|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.view.facelets.TemplateContext
public abstract class TemplateContext
This class is used to encapsulate the information required to resolve facelets templates. Composite components require to "isolate" the inner template resolution. That means, when a ui:xx tag is used, do not take into account the outer templates defined. The methods here are only used by the current implementation and the intention is not expose it as public api.
Constructor Summary | |
---|---|
TemplateContext()
|
Method Summary | |
---|---|
abstract void |
extendClient(AbstractFacelet owner,
TemplateClient client)
|
abstract TemplateManager |
getCompositeComponentClient()
|
abstract boolean |
includeDefinition(FaceletContext ctx,
Facelet owner,
UIComponent parent,
java.lang.String name)
This method will walk through the TemplateClient stack to resolve and apply the definition for the passed name. |
abstract TemplateManager |
popClient()
Pop the last added pushed TemplateClient |
abstract TemplateManager |
popExtendedClient()
Pop the last added extended TemplateClient |
abstract void |
pushClient(AbstractFacelet owner,
TemplateClient client)
Push the passed TemplateClient onto the stack for Definition Resolution |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TemplateContext()
Method Detail |
---|
public abstract TemplateManager popClient()
TemplateClient
public abstract void pushClient(AbstractFacelet owner, TemplateClient client)
client
- TemplateClient
public abstract TemplateManager popExtendedClient()
client
- public abstract void extendClient(AbstractFacelet owner, TemplateClient client)
public abstract boolean includeDefinition(FaceletContext ctx, Facelet owner, UIComponent parent, java.lang.String name) throws java.io.IOException, FaceletException, FacesException, javax.el.ELException
parent
- the UIComponent to apply toname
- name or null of the definition you want to apply
java.io.IOException
FaceletException
FacesException
javax.el.ELException
public abstract TemplateManager getCompositeComponentClient()
public abstract void setCompositeComponentClient(TemplateManager compositeComponentClient)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |