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

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.HTMLListRenderer
                    |
                    +--org.enhydra.barracuda.core.comp.renderer.html.HTMLSelectRenderer
All Implemented Interfaces:
Renderer

public class HTMLSelectRenderer
extends HTMLListRenderer

This class handles the default rendering of a list in an HTML view.


Field Summary
protected  BSelect bscomp
           
protected  ListModel lm
           
protected static org.apache.log4j.Logger logger
           
protected  ListSelectionModel lsm
           
 
Fields inherited from class org.enhydra.barracuda.core.comp.renderer.html.HTMLListRenderer
blist, eh, model
 
Constructor Summary
HTMLSelectRenderer()
           
 
Method Summary
 org.w3c.dom.Node createDefaultNode(org.w3c.dom.Document doc, BComponent comp, ViewContext vc)
          The purpose of this method is to create a default Node to be used when the component is not bound to any specific view.
 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 org.enhydra.barracuda.core.comp.renderer.html.HTMLListRenderer
addItemToList
 
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 org.apache.log4j.Logger logger

bscomp

protected BSelect bscomp

lm

protected ListModel lm

lsm

protected ListSelectionModel lsm
Constructor Detail

HTMLSelectRenderer

public HTMLSelectRenderer()
Method Detail

createDefaultNode

public org.w3c.dom.Node createDefaultNode(org.w3c.dom.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 HTMLListRenderer
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 HTMLListRenderer
Parameters:
comp - the component to be rendered
view - the view the component should be rendered in
vc - the view context
Throws:
RenderException - if unable to render the component in the specified view


Copyright © 2001 Enhydra.org