org.apache.shale.usecases.rolodex
Class HeaderSorterRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.apache.shale.usecases.rolodex.HeaderSorterRenderer

public class HeaderSorterRenderer
extends javax.faces.render.Renderer


Constructor Summary
HeaderSorterRenderer()
           
 
Method Summary
 void encodeBegin(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Initiates the component rendering.
 void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Completes component rendering.
protected  javax.faces.component.UIData findDataComponent(javax.faces.component.UIComponent uicomponent)
          Finds the parent IUData component.
protected  String getActionStr(javax.faces.context.FacesContext context)
          Returns the base context root of the form using the view handler.
protected  String getSortedTag(javax.faces.context.FacesContext context, javax.faces.component.UIData data)
          The name of the query parameter used to control column sorting.
protected  boolean wasSelected(javax.faces.context.FacesContext context, javax.faces.component.UIData data, HeaderSorter column)
          Determines if the column was click to be sorted on.
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, decode, encodeChildren, getConvertedValue, getRendersChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeaderSorterRenderer

public HeaderSorterRenderer()
Method Detail

findDataComponent

protected javax.faces.component.UIData findDataComponent(javax.faces.component.UIComponent uicomponent)

Finds the parent IUData component.


getActionStr

protected String getActionStr(javax.faces.context.FacesContext context)

Returns the base context root of the form using the view handler.


getSortedTag

protected String getSortedTag(javax.faces.context.FacesContext context,
                              javax.faces.component.UIData data)

The name of the query parameter used to control column sorting.


wasSelected

protected boolean wasSelected(javax.faces.context.FacesContext context,
                              javax.faces.component.UIData data,
                              HeaderSorter column)

Determines if the column was click to be sorted on.


encodeBegin

public void encodeBegin(javax.faces.context.FacesContext context,
                        javax.faces.component.UIComponent component)
                 throws IOException

Initiates the component rendering.

Overrides:
encodeBegin in class javax.faces.render.Renderer
Throws:
IOException

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext context,
                      javax.faces.component.UIComponent component)
               throws IOException

Completes component rendering.

Overrides:
encodeEnd in class javax.faces.render.Renderer
Throws:
IOException


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.