org.geebis.books.ui.faces.component
Class ToolbarRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.geebis.books.ui.faces.component.ToolbarRenderer

public class ToolbarRenderer
extends javax.faces.render.Renderer

The ToolbarRenderer class renders the Navigator JSF control. This renderer requires that navigator.js (in web/resources/javascripts/navigator.js) be included on the page that is using the Navigator. Scriptaculous is also required.

This is the typical layout (with clientId equal to the client id of the Navigator):

 


Constructor Summary
ToolbarRenderer()
           
 
Method Summary
 void decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
 void encodeBegin(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
 void encodeChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
 void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
protected  int getCount(java.util.Map attributes)
           
protected  javax.faces.component.UIForm getParentForm(javax.faces.component.UIComponent component)
           
 
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

ToolbarRenderer

public ToolbarRenderer()
Method Detail

encodeBegin

public void encodeBegin(javax.faces.context.FacesContext context,
                        javax.faces.component.UIComponent component)
                 throws java.io.IOException
Overrides:
encodeBegin in class javax.faces.render.Renderer
Throws:
java.io.IOException

encodeChildren

public void encodeChildren(javax.faces.context.FacesContext context,
                           javax.faces.component.UIComponent component)
                    throws java.io.IOException
Overrides:
encodeChildren in class javax.faces.render.Renderer
Throws:
java.io.IOException

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext context,
                      javax.faces.component.UIComponent component)
               throws java.io.IOException
Overrides:
encodeEnd in class javax.faces.render.Renderer
Throws:
java.io.IOException

getCount

protected int getCount(java.util.Map attributes)

decode

public void decode(javax.faces.context.FacesContext context,
                   javax.faces.component.UIComponent component)
Overrides:
decode in class javax.faces.render.Renderer

getParentForm

protected javax.faces.component.UIForm getParentForm(javax.faces.component.UIComponent component)