org.enhydra.barracuda.core.comp.renderer.html
Class HTMLTableRenderer
java.lang.Object
|
+--org.enhydra.barracuda.core.comp.renderer.DOMComponentRenderer
|
+--org.enhydra.barracuda.core.comp.renderer.html.HTMLComponentRenderer
|
+--org.enhydra.barracuda.core.comp.renderer.html.HTMLTableRenderer
- All Implemented Interfaces:
- Renderer
- public class HTMLTableRenderer
- extends HTMLComponentRenderer
This class handles the default rendering of a table in an HTML view.
Method Summary |
org.w3c.dom.Node |
createDefaultNode(org.w3c.dom.Document doc,
BComponent comp,
ViewContext vc)
The purpose of this method is for a renderer to provide
a default node (if none exists). |
protected void |
populateTableFromModel(org.w3c.dom.Node node,
TableView view,
ViewContext vc,
TableModel curModel,
DefaultListModel rowModel,
BList rowList)
|
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.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static org.apache.log4j.Logger logger
eh
protected EnabledHelper eh
btable
protected BTable btable
HTMLTableRenderer
public HTMLTableRenderer()
createDefaultNode
public org.w3c.dom.Node createDefaultNode(org.w3c.dom.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 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
- Parameters:
comp
- the component to be renderedview
- the view the component should be rendered invc
- the view context
- Throws:
RenderException
- if unable to render the component in the
specified view
populateTableFromModel
protected void populateTableFromModel(org.w3c.dom.Node node,
TableView view,
ViewContext vc,
TableModel curModel,
DefaultListModel rowModel,
BList rowList)
throws RenderException
RenderException
Copyright © 2001 Enhydra.org