org.barracudamvc.core.comp.renderer.html
Class HTMLInputRenderer
java.lang.Object
org.barracudamvc.core.comp.renderer.DOMComponentRenderer
org.barracudamvc.core.comp.renderer.html.HTMLComponentRenderer
org.barracudamvc.core.comp.renderer.html.HTMLInputRenderer
- All Implemented Interfaces:
- Renderer
- Direct Known Subclasses:
- HTMLToggleRenderer
- public class HTMLInputRenderer
- extends HTMLComponentRenderer
This class handles the default rendering of a list in an HTML view.
Field Summary |
protected static org.apache.log4j.Logger |
logger
|
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
HTMLInputRenderer
public HTMLInputRenderer()
createDefaultNode
public Node createDefaultNode(Document doc,
BComponent comp,
ViewContext vc)
throws UnsupportedFormatException
- The purpose of this method is to create a default Node to be used when
the component is not bound to any specific view.
- Specified by:
createDefaultNode
in interface Renderer
- Overrides:
createDefaultNode
in class DOMComponentRenderer
- Parameters:
doc
- the master Document which can be used to create elements
from scratchcomp
- the component that we're dealing with for the current requestvc
- 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 © 2004 BarracudaMVC.org All Rights Reserved.