org.apache.myfaces.custom.datascroller
Class HtmlDataScrollerRenderer
java.lang.Object
   javax.faces.render.Renderer
javax.faces.render.Renderer
       org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer
org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer
           org.apache.myfaces.custom.datascroller.HtmlDataScrollerRenderer
org.apache.myfaces.custom.datascroller.HtmlDataScrollerRenderer
- public class HtmlDataScrollerRenderer 
- extends 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 $)
 
 
| 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  HtmlCommandLink | getLink(javax.faces.context.FacesContext facesContext,
        HtmlDataScroller scroller,
        String facetName)
 | 
| protected  HtmlCommandLink | getLink(javax.faces.context.FacesContext facesContext,
        HtmlDataScroller scroller,
        String text,
        int pageIndex)
 | 
|  boolean | getRendersChildren()
 | 
|  void | removeVariables(javax.faces.context.FacesContext facescontext,
                HtmlDataScroller scroller)
 | 
| protected  void | renderFacet(javax.faces.context.FacesContext facesContext,
            HtmlDataScroller scroller,
            javax.faces.component.UIComponent facetComp,
            String facetName,
            boolean active,
            boolean renderLinks,
            boolean disableLinks)
 | 
| protected  void | renderPaginator(javax.faces.context.FacesContext facesContext,
                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,
               HtmlDataScroller scroller)
 | 
| protected  void | setVariables(javax.faces.context.FacesContext facescontext,
             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,
                         HtmlDataScroller scroller)
 | 
| protected  void | writePaginatorElementStart(javax.faces.context.ResponseWriter writer,
                           HtmlDataScroller scroller)
 | 
| protected  void | writePaginatorEnd(javax.faces.context.ResponseWriter writer,
                  HtmlDataScroller scroller)
 | 
| protected  void | writePaginatorRowEnd(javax.faces.context.ResponseWriter writer,
                     HtmlDataScroller scroller)
 | 
| protected  void | writePaginatorRowStart(javax.faces.context.ResponseWriter writer,
                       HtmlDataScroller scroller)
 | 
| protected  void | writePaginatorStart(javax.faces.context.ResponseWriter writer,
                    HtmlDataScroller scroller)
 | 
| protected  void | writeScrollerElementEnd(javax.faces.context.ResponseWriter writer,
                        HtmlDataScroller scroller)
 | 
| protected  void | writeScrollerElementStart(javax.faces.context.ResponseWriter writer,
                          HtmlDataScroller scroller)
 | 
| protected  void | writeScrollerEnd(javax.faces.context.ResponseWriter writer,
                 HtmlDataScroller scroller)
 | 
| protected  void | writeScrollerRowEnd(javax.faces.context.ResponseWriter writer,
                    HtmlDataScroller scroller)
 | 
| protected  void | writeScrollerRowStart(javax.faces.context.ResponseWriter writer,
                      HtmlDataScroller scroller)
 | 
| protected  void | writeScrollerStart(javax.faces.context.ResponseWriter writer,
                   HtmlDataScroller scroller)
 | 
 
 
| 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 | 
 
RENDERER_TYPE
public static final String RENDERER_TYPE
- See Also:
- Constant Field Values
PAGE_NAVIGATION
protected static final String PAGE_NAVIGATION
HtmlDataScrollerRenderer
public HtmlDataScrollerRenderer()
getRendersChildren
public boolean getRendersChildren()
- 
- Overrides:
- getRendersChildrenin 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:
- decodein class- javax.faces.render.Renderer
 
- 
 
setVariables
protected void setVariables(javax.faces.context.FacesContext facescontext,
                            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,
                            HtmlDataScroller scroller)
                     throws IOException
- 
- Throws:
- IOException
 
encodeBegin
public void encodeBegin(javax.faces.context.FacesContext facesContext,
                        javax.faces.component.UIComponent uiComponent)
                 throws IOException
- 
- Overrides:
- encodeBeginin class- javax.faces.render.Renderer
 
- 
- Throws:
- IOException
 
encodeChildren
public void encodeChildren(javax.faces.context.FacesContext facescontext,
                           javax.faces.component.UIComponent uicomponent)
                    throws IOException
- 
- Overrides:
- encodeChildrenin class- javax.faces.render.Renderer
 
- 
- Throws:
- IOException
 
encodeEnd
public void encodeEnd(javax.faces.context.FacesContext facesContext,
                      javax.faces.component.UIComponent uiComponent)
               throws IOException
- 
- Overrides:
- encodeEndin class- javax.faces.render.Renderer
 
- 
- Throws:
- IOException
 
renderScroller
protected void renderScroller(javax.faces.context.FacesContext facesContext,
                              HtmlDataScroller scroller)
                       throws IOException
- 
- Throws:
- IOException
 
writeScrollerEnd
protected void writeScrollerEnd(javax.faces.context.ResponseWriter writer,
                                HtmlDataScroller scroller)
                         throws IOException
- 
- Throws:
- IOException
 
writeScrollerRowEnd
protected void writeScrollerRowEnd(javax.faces.context.ResponseWriter writer,
                                   HtmlDataScroller scroller)
                            throws IOException
- 
- Throws:
- IOException
 
writeScrollerElementEnd
protected void writeScrollerElementEnd(javax.faces.context.ResponseWriter writer,
                                       HtmlDataScroller scroller)
                                throws IOException
- 
- Throws:
- IOException
 
writeScrollerElementStart
protected void writeScrollerElementStart(javax.faces.context.ResponseWriter writer,
                                         HtmlDataScroller scroller)
                                  throws IOException
- 
- Throws:
- IOException
 
writeScrollerRowStart
protected void writeScrollerRowStart(javax.faces.context.ResponseWriter writer,
                                     HtmlDataScroller scroller)
                              throws IOException
- 
- Throws:
- IOException
 
writeScrollerStart
protected void writeScrollerStart(javax.faces.context.ResponseWriter writer,
                                  HtmlDataScroller scroller)
                           throws IOException
- 
- Throws:
- IOException
 
renderFacet
protected void renderFacet(javax.faces.context.FacesContext facesContext,
                           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,
                               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,
                                 HtmlDataScroller scroller)
                          throws IOException
- 
- Throws:
- IOException
 
writePaginatorRowEnd
protected void writePaginatorRowEnd(javax.faces.context.ResponseWriter writer,
                                    HtmlDataScroller scroller)
                             throws IOException
- 
- Throws:
- IOException
 
writePaginatorElementEnd
protected void writePaginatorElementEnd(javax.faces.context.ResponseWriter writer,
                                        HtmlDataScroller scroller)
                                 throws IOException
- 
- Throws:
- IOException
 
writePaginatorElementStart
protected void writePaginatorElementStart(javax.faces.context.ResponseWriter writer,
                                          HtmlDataScroller scroller)
                                   throws IOException
- 
- Throws:
- IOException
 
writePaginatorRowStart
protected void writePaginatorRowStart(javax.faces.context.ResponseWriter writer,
                                      HtmlDataScroller scroller)
                               throws IOException
- 
- Throws:
- IOException
 
writePaginatorStart
protected void writePaginatorStart(javax.faces.context.ResponseWriter writer,
                                   HtmlDataScroller scroller)
                            throws IOException
- 
- Throws:
- IOException
 
getLink
protected HtmlCommandLink getLink(javax.faces.context.FacesContext facesContext,
                                  HtmlDataScroller scroller,
                                  String text,
                                  int pageIndex)
- 
 
getLink
protected HtmlCommandLink getLink(javax.faces.context.FacesContext facesContext,
                                  HtmlDataScroller scroller,
                                  String facetName)
- 
 
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.