org.apache.myfaces.view.facelets.impl
Class TemplateContextImpl

java.lang.Object
  extended by org.apache.myfaces.view.facelets.TemplateContext
      extended by org.apache.myfaces.view.facelets.impl.TemplateContextImpl

public class TemplateContextImpl
extends TemplateContext

Since:
2.0.1
Version:
$Revision: 947351 $ $Date: 2010-05-22 19:19:48 -0500 (Sáb, 22 May 2010) $
Author:
Leonardo Uribe (latest modification by $Author: lu4242 $)

Constructor Summary
TemplateContextImpl()
           
 
Method Summary
 void extendClient(AbstractFacelet owner, TemplateClient client)
           
 TemplateManager getCompositeComponentClient()
           
 boolean includeDefinition(javax.faces.view.facelets.FaceletContext ctx, Facelet owner, javax.faces.component.UIComponent parent, java.lang.String name)
          This method will walk through the TemplateClient stack to resolve and apply the definition for the passed name.
 TemplateManager popClient()
          Pop the last added pushed TemplateClient
 TemplateManager popExtendedClient()
          Pop the last added extended TemplateClient
 void pushClient(AbstractFacelet owner, TemplateClient client)
          Push the passed TemplateClient onto the stack for Definition Resolution
 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

TemplateContextImpl

public TemplateContextImpl()
Method Detail

popClient

public TemplateManager popClient()
Description copied from class: TemplateContext
Pop the last added pushed TemplateClient

Specified by:
popClient in class TemplateContext
See Also:
TemplateClient

pushClient

public void pushClient(AbstractFacelet owner,
                       TemplateClient client)
Description copied from class: TemplateContext
Push the passed TemplateClient onto the stack for Definition Resolution

Specified by:
pushClient in class TemplateContext
See Also:
TemplateClient

popExtendedClient

public TemplateManager popExtendedClient()
Description copied from class: TemplateContext
Pop the last added extended TemplateClient

Specified by:
popExtendedClient in class TemplateContext

extendClient

public void extendClient(AbstractFacelet owner,
                         TemplateClient client)
Specified by:
extendClient in class TemplateContext

includeDefinition

public boolean includeDefinition(javax.faces.view.facelets.FaceletContext ctx,
                                 Facelet owner,
                                 javax.faces.component.UIComponent parent,
                                 java.lang.String name)
                          throws java.io.IOException,
                                 javax.faces.view.facelets.FaceletException,
                                 javax.faces.FacesException,
                                 javax.el.ELException
Description copied from class: TemplateContext
This method will walk through the TemplateClient stack to resolve and apply the definition for the passed name. If it's been resolved and applied, this method will return true.

Specified by:
includeDefinition in class TemplateContext
parent - the UIComponent to apply to
name - name or null of the definition you want to apply
Returns:
true if successfully applied, otherwise false
Throws:
java.io.IOException
javax.faces.view.facelets.FaceletException
javax.faces.FacesException
javax.el.ELException

getCompositeComponentClient

public TemplateManager getCompositeComponentClient()
Specified by:
getCompositeComponentClient in class TemplateContext

setCompositeComponentClient

public void setCompositeComponentClient(TemplateManager compositeComponentClient)
Description copied from class: TemplateContext
Set the composite component TemplateManager instance, used to resolve cc:insertChildred or cc:insertFacet usages for the current template context

Specified by:
setCompositeComponentClient in class TemplateContext


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.