org.enhydra.barracuda.core.comp.renderer.html
Class HTMLTemplateRenderer

java.lang.Object
  extended byorg.enhydra.barracuda.core.comp.renderer.DOMComponentRenderer
      extended byorg.enhydra.barracuda.core.comp.renderer.html.HTMLComponentRenderer
          extended byorg.enhydra.barracuda.core.comp.renderer.html.HTMLTemplateRenderer
All Implemented Interfaces:
Renderer

public class HTMLTemplateRenderer
extends HTMLComponentRenderer

This class handles the default rendering of a template into an HTML view.


Field Summary
protected  EnabledHelper eh
           
protected static org.apache.log4j.Logger logger
           
protected  TemplateHelper th
           
 
Constructor Summary
HTMLTemplateRenderer()
           
HTMLTemplateRenderer(TemplateHelper ith)
           
 
Method Summary
 Node createDefaultNode(Document doc, BComponent comp, ViewContext vc)
          The purpose of this method is for a renderer to provide a default node (if none exists).
 TemplateHelper getTemplateHelper()
           
 void renderComponent(BComponent comp, View view, ViewContext vc)
          This method should actually render the data from the component into the view, taking into consideration the specified ViewContext.
 void setTemplateHelper(TemplateHelper ith)
           
 
Methods inherited from class org.enhydra.barracuda.core.comp.renderer.html.HTMLComponentRenderer
addChildToParent
 
Methods inherited from class org.enhydra.barracuda.core.comp.renderer.DOMComponentRenderer
showNodeInterfaces
 
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

eh

protected EnabledHelper eh

th

protected TemplateHelper th
Constructor Detail

HTMLTemplateRenderer

public HTMLTemplateRenderer()

HTMLTemplateRenderer

public HTMLTemplateRenderer(TemplateHelper ith)
Method Detail

setTemplateHelper

public void setTemplateHelper(TemplateHelper ith)

getTemplateHelper

public TemplateHelper getTemplateHelper()

createDefaultNode

public Node createDefaultNode(Document doc,
                              BComponent comp,
                              ViewContext vc)
                       throws UnsupportedFormatException
The purpose of this method is for a renderer to provide a default node (if none exists). This component currently does not provide a default, so it throws an UnsupportedFormatException instead.

Specified by:
createDefaultNode in interface Renderer
Overrides:
createDefaultNode in class HTMLComponentRenderer
Parameters:
doc - the master Document which can be used to create elements from scratch
comp - the component that we're dealing with for the current request
vc - the view context for the current request
Returns:
a default node (created from scratch)
Throws:
UnsupportedFormatException - if the renderer has no default node

renderComponent

public void renderComponent(BComponent comp,
                            View view,
                            ViewContext vc)
                     throws RenderException
Description copied from class: DOMComponentRenderer
This method should actually render the data from the component into the view, taking into consideration the specified ViewContext. Generally, every renderer will implement this method.

Specified by:
renderComponent in interface Renderer
Overrides:
renderComponent in class HTMLComponentRenderer
Throws:
RenderException


Copyright © 2003 BarracudaMVC.org All Rights Reserved.