com.mycompany.jsf.renderer
Class BarRenderer

java.lang.Object
  extended byjavax.faces.render.Renderer
      extended bycom.mycompany.jsf.renderer.BarRenderer

public class BarRenderer
extends javax.faces.render.Renderer

This class is a JSF Renderer for the "javax.faces.Data" component type.

Version:
1.0
Author:
Hans Bergsten, Gefion Software

Constructor Summary
BarRenderer()
           
 
Method Summary
 void encodeChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Renders the component by letting its UIColumn children process one row at a time, starting with the row specified by the "first" attribute for the number of rows specified by the "rows" attribute, or until the lasy row is reached.
private  void encodeRecursive(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Calls the appropriate encoding methods on the component and calls itself recursively for all component children.
 boolean getRendersChildren()
          Returns "true".
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, decode, encodeBegin, encodeEnd, getConvertedValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BarRenderer

public BarRenderer()
Method Detail

getRendersChildren

public boolean getRendersChildren()
Returns "true".


encodeChildren

public void encodeChildren(javax.faces.context.FacesContext context,
                           javax.faces.component.UIComponent component)
                    throws java.io.IOException
Renders the component by letting its UIColumn children process one row at a time, starting with the row specified by the "first" attribute for the number of rows specified by the "rows" attribute, or until the lasy row is reached. If an explicit ID is set for the component, the component's client ID value is used as the "id" attribute value on a "span" element that wraps all output produced by the children.

Throws:
java.io.IOException

encodeRecursive

private void encodeRecursive(javax.faces.context.FacesContext context,
                             javax.faces.component.UIComponent component)
                      throws java.io.IOException
Calls the appropriate encoding methods on the component and calls itself recursively for all component children.

Throws:
java.io.IOException