com.sun.rave.web.ui.renderer
Class LegendRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by com.sun.rave.web.ui.renderer.AbstractRenderer
          extended by com.sun.rave.web.ui.renderer.LegendRenderer

public class LegendRenderer
extends AbstractRenderer

Renderer for an Legend component.


Field Summary
 
Fields inherited from class com.sun.rave.web.ui.renderer.AbstractRenderer
BUNDLE, EVENTS_ATTRIBUTES, I18N_ATTRIBUTES
 
Constructor Summary
LegendRenderer()
          Creates a new instance of LegendRenderer
 
Method Summary
protected  void renderEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, javax.faces.context.ResponseWriter writer)
          Renders the legend.
protected  void renderOuterDiv(javax.faces.context.FacesContext context, Legend legend, javax.faces.context.ResponseWriter writer)
          Renders the outer div which contains the legend.
 
Methods inherited from class com.sun.rave.web.ui.renderer.AbstractRenderer
addBooleanAttributes, addCoreAttributes, addIntegerAttributes, addStringAttributes, decode, encodeBegin, encodeChildren, encodeEnd, getApplication, getAsObject, getAsString, getExternalContext, getFacesContext, getSubmittedValue, isDisabled, isPortlet, isReadOnly, renderAttributes, renderMarkup, renderStart, setSubmittedValue
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, getConvertedValue, getRendersChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LegendRenderer

public LegendRenderer()
Creates a new instance of LegendRenderer

Method Detail

renderEnd

protected void renderEnd(javax.faces.context.FacesContext context,
                         javax.faces.component.UIComponent component,
                         javax.faces.context.ResponseWriter writer)
                  throws java.io.IOException
Renders the legend.

Overrides:
renderEnd in class AbstractRenderer
Parameters:
context - The current FacesContext
component - The Legend object to use
writer - The current ResponseWriter
Throws:
java.io.IOException - if an input/output error occurss

renderOuterDiv

protected void renderOuterDiv(javax.faces.context.FacesContext context,
                              Legend legend,
                              javax.faces.context.ResponseWriter writer)
                       throws java.io.IOException
Renders the outer div which contains the legend.

Parameters:
context - The current FacesContext
alert - The Legend object to use
writer - The current ResponseWriter
Throws:
java.io.IOException - if an input/output error occurs