org.apache.myfaces.custom.datascroller
Class HtmlDataScrollerRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer
          extended by org.apache.myfaces.custom.datascroller.HtmlDataScrollerRenderer

public class HtmlDataScrollerRenderer
extends org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer

Renderer for the HtmlDataScroller component.

Version:
$Revision: 987302 $ $Date: 2010-08-19 15:40:05 -0500 (Thu, 19 Aug 2010) $
Author:
Thomas Spiegl (latest modification by $Author: lu4242 $)

Field Summary
protected static String PAGE_NAVIGATION
           
static String RENDERER_TYPE
           
 
Constructor Summary
HtmlDataScrollerRenderer()
           
 
Method Summary
 void decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Determine which datascroller navigation option the user chose (if any), and if they did then queue the appropriate ScrollerActionEvent for later execution.
 void encodeBegin(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
           
 void encodeChildren(javax.faces.context.FacesContext facescontext, javax.faces.component.UIComponent uicomponent)
           
 void encodeEnd(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
           
protected  org.apache.myfaces.component.html.ext.HtmlCommandLink getLink(javax.faces.context.FacesContext facesContext, org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller, String facetName)
           
protected  org.apache.myfaces.component.html.ext.HtmlCommandLink getLink(javax.faces.context.FacesContext facesContext, org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller, String text, int pageIndex)
           
 boolean getRendersChildren()
           
 void removeVariables(javax.faces.context.FacesContext facescontext, org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller)
           
protected  void renderFacet(javax.faces.context.FacesContext facesContext, org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller, javax.faces.component.UIComponent facetComp, String facetName, boolean active, boolean renderLinks, boolean disableLinks)
           
protected  void renderPaginator(javax.faces.context.FacesContext facesContext, org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller)
          The "paginator" is a sequence of page numbers which the user can click on to leap directly to a specific page of data.
protected  void renderScroller(javax.faces.context.FacesContext facesContext, org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller)
           
protected  void setVariables(javax.faces.context.FacesContext facescontext, org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller)
          Expose much of the internal state of this component so that UIComponents nested within this component can very flexibly display the component state to the user.
protected  void writePaginatorElementEnd(javax.faces.context.ResponseWriter writer, org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller)
           
protected  void writePaginatorElementStart(javax.faces.context.ResponseWriter writer, org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller)
           
protected  void writePaginatorEnd(javax.faces.context.ResponseWriter writer, org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller)
           
protected  void writePaginatorRowEnd(javax.faces.context.ResponseWriter writer, org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller)
           
protected  void writePaginatorRowStart(javax.faces.context.ResponseWriter writer, org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller)
           
protected  void writePaginatorStart(javax.faces.context.ResponseWriter writer, org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller)
           
protected  void writeScrollerElementEnd(javax.faces.context.ResponseWriter writer, org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller)
           
protected  void writeScrollerElementStart(javax.faces.context.ResponseWriter writer, org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller)
           
protected  void writeScrollerEnd(javax.faces.context.ResponseWriter writer, org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller)
           
protected  void writeScrollerRowEnd(javax.faces.context.ResponseWriter writer, org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller)
           
protected  void writeScrollerRowStart(javax.faces.context.ResponseWriter writer, org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller)
           
protected  void writeScrollerStart(javax.faces.context.ResponseWriter writer, org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller)
           
 
Methods inherited from class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer
getActionUrl, getChildCount, getChildren, getClientId, renderId, shouldRenderId, toUri
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, getConvertedValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RENDERER_TYPE

public static final String RENDERER_TYPE
See Also:
Constant Field Values

PAGE_NAVIGATION

protected static final String PAGE_NAVIGATION
Constructor Detail

HtmlDataScrollerRenderer

public HtmlDataScrollerRenderer()
Method Detail

getRendersChildren

public boolean getRendersChildren()
Overrides:
getRendersChildren in class javax.faces.render.Renderer

decode

public void decode(javax.faces.context.FacesContext context,
                   javax.faces.component.UIComponent component)
Determine which datascroller navigation option the user chose (if any), and if they did then queue the appropriate ScrollerActionEvent for later execution.

Overrides:
decode in class javax.faces.render.Renderer

setVariables

protected void setVariables(javax.faces.context.FacesContext facescontext,
                            org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller)
                     throws IOException
Expose much of the internal state of this component so that UIComponents nested within this component can very flexibly display the component state to the user.

Throws:
IOException

removeVariables

public void removeVariables(javax.faces.context.FacesContext facescontext,
                            org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller)
                     throws IOException
Throws:
IOException

encodeBegin

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

encodeChildren

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

encodeEnd

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

renderScroller

protected void renderScroller(javax.faces.context.FacesContext facesContext,
                              org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller)
                       throws IOException
Throws:
IOException

writeScrollerEnd

protected void writeScrollerEnd(javax.faces.context.ResponseWriter writer,
                                org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller)
                         throws IOException
Throws:
IOException

writeScrollerRowEnd

protected void writeScrollerRowEnd(javax.faces.context.ResponseWriter writer,
                                   org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller)
                            throws IOException
Throws:
IOException

writeScrollerElementEnd

protected void writeScrollerElementEnd(javax.faces.context.ResponseWriter writer,
                                       org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller)
                                throws IOException
Throws:
IOException

writeScrollerElementStart

protected void writeScrollerElementStart(javax.faces.context.ResponseWriter writer,
                                         org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller)
                                  throws IOException
Throws:
IOException

writeScrollerRowStart

protected void writeScrollerRowStart(javax.faces.context.ResponseWriter writer,
                                     org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller)
                              throws IOException
Throws:
IOException

writeScrollerStart

protected void writeScrollerStart(javax.faces.context.ResponseWriter writer,
                                  org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller)
                           throws IOException
Throws:
IOException

renderFacet

protected void renderFacet(javax.faces.context.FacesContext facesContext,
                           org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller,
                           javax.faces.component.UIComponent facetComp,
                           String facetName,
                           boolean active,
                           boolean renderLinks,
                           boolean disableLinks)
                    throws IOException
Throws:
IOException

renderPaginator

protected void renderPaginator(javax.faces.context.FacesContext facesContext,
                               org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller)
                        throws IOException
The "paginator" is a sequence of page numbers which the user can click on to leap directly to a specific page of data.

Throws:
IOException

writePaginatorEnd

protected void writePaginatorEnd(javax.faces.context.ResponseWriter writer,
                                 org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller)
                          throws IOException
Throws:
IOException

writePaginatorRowEnd

protected void writePaginatorRowEnd(javax.faces.context.ResponseWriter writer,
                                    org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller)
                             throws IOException
Throws:
IOException

writePaginatorElementEnd

protected void writePaginatorElementEnd(javax.faces.context.ResponseWriter writer,
                                        org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller)
                                 throws IOException
Throws:
IOException

writePaginatorElementStart

protected void writePaginatorElementStart(javax.faces.context.ResponseWriter writer,
                                          org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller)
                                   throws IOException
Throws:
IOException

writePaginatorRowStart

protected void writePaginatorRowStart(javax.faces.context.ResponseWriter writer,
                                      org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller)
                               throws IOException
Throws:
IOException

writePaginatorStart

protected void writePaginatorStart(javax.faces.context.ResponseWriter writer,
                                   org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller)
                            throws IOException
Throws:
IOException

getLink

protected org.apache.myfaces.component.html.ext.HtmlCommandLink getLink(javax.faces.context.FacesContext facesContext,
                                                                        org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller,
                                                                        String text,
                                                                        int pageIndex)

getLink

protected org.apache.myfaces.component.html.ext.HtmlCommandLink getLink(javax.faces.context.FacesContext facesContext,
                                                                        org.apache.myfaces.custom.datascroller.HtmlDataScroller scroller,
                                                                        String facetName)


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.