org.enhydra.barracuda.core.comp.renderer
Class TemplateHelper
java.lang.Object
org.enhydra.barracuda.core.comp.renderer.TemplateHelper
- public class TemplateHelper
- extends Object
Provide a default encapsulation of the template rendering stuff.
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 |
logger
protected static final org.apache.log4j.Logger logger
masterRenderer
protected Renderer masterRenderer
btemplate
protected BTemplate btemplate
itStack
protected Stack itStack
TemplateHelper
public TemplateHelper(Renderer imasterRenderer)
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.