org.enhydra.barracuda.core.comp.renderer
Class TemplateHelper

java.lang.Object
  extended byorg.enhydra.barracuda.core.comp.renderer.TemplateHelper

public class TemplateHelper
extends Object

Provide a default encapsulation of the template rendering stuff.


Field Summary
protected  BTemplate btemplate
           
protected  Stack itStack
           
protected static org.apache.log4j.Logger logger
           
protected  Renderer masterRenderer
           
 
Constructor Summary
TemplateHelper(Renderer imasterRenderer)
           
 
Method Summary
protected  void copyChildNodes(Node templateNode, Node targetNode, TemplateView view, ViewContext vc, int depth)
          Copy nodes from the template to the target
protected  Node getNode(Node templateNode, TemplateView view, ViewContext vc, int depth)
          Given the specified templateNode, return the new Node to be rendered into the view
 void render(BTemplate comp, TemplateView view, ViewContext vc)
          This renders a BTemplate component into the specified TemplateView, for the given ViewCOntext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.apache.log4j.Logger logger

masterRenderer

protected Renderer masterRenderer

btemplate

protected BTemplate btemplate

itStack

protected Stack itStack
Constructor Detail

TemplateHelper

public TemplateHelper(Renderer imasterRenderer)
Method Detail

render

public void render(BTemplate comp,
                   TemplateView view,
                   ViewContext vc)
            throws RenderException
This renders a BTemplate component into the specified TemplateView, for the given ViewCOntext

Throws:
RenderException

copyChildNodes

protected void copyChildNodes(Node templateNode,
                              Node targetNode,
                              TemplateView view,
                              ViewContext vc,
                              int depth)
                       throws RenderException
Copy nodes from the template to the target

Throws:
RenderException

getNode

protected Node getNode(Node templateNode,
                       TemplateView view,
                       ViewContext vc,
                       int depth)
                throws RenderException
Given the specified templateNode, return the new Node to be rendered into the view

Throws:
RenderException


Copyright © 2003 BarracudaMVC.org All Rights Reserved.