org.openfaces.renderkit.table
Class DataTablePaginatorRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.openfaces.renderkit.RendererBase
          extended by org.openfaces.renderkit.table.DataTablePaginatorRenderer

public class DataTablePaginatorRenderer
extends RendererBase


Field Summary
static java.lang.String FIRST_PAGE_COMPONENT
           
static java.lang.String LAST_PAGE_COMPONENT
           
static java.lang.String NEXT_PAGE_COMPONENT
           
static java.lang.String PREV_PAGE_COMPONENT
           
 
Constructor Summary
DataTablePaginatorRenderer()
           
 
Method Summary
 boolean canSelectFirstPage(DataTable table)
           
static boolean canSelectLastPage(DataTable table)
           
static boolean canSelectNextPage(DataTable table)
           
static boolean canSelectPreviousPage(DataTable table)
           
static javax.faces.component.html.HtmlGraphicImage createGraphicImage(javax.faces.context.FacesContext context, java.lang.String imageUrl)
           
 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)
           
static void executePaginationAction(javax.faces.context.FacesContext context, DataTable table, java.lang.String actionStr)
           
 boolean getRendersChildren()
           
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, getConvertedValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIRST_PAGE_COMPONENT

public static final java.lang.String FIRST_PAGE_COMPONENT
See Also:
Constant Field Values

LAST_PAGE_COMPONENT

public static final java.lang.String LAST_PAGE_COMPONENT
See Also:
Constant Field Values

NEXT_PAGE_COMPONENT

public static final java.lang.String NEXT_PAGE_COMPONENT
See Also:
Constant Field Values

PREV_PAGE_COMPONENT

public static final java.lang.String PREV_PAGE_COMPONENT
See Also:
Constant Field Values
Constructor Detail

DataTablePaginatorRenderer

public DataTablePaginatorRenderer()
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

getRendersChildren

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

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

createGraphicImage

public static javax.faces.component.html.HtmlGraphicImage createGraphicImage(javax.faces.context.FacesContext context,
                                                                             java.lang.String imageUrl)

canSelectFirstPage

public boolean canSelectFirstPage(DataTable table)

canSelectPreviousPage

public static boolean canSelectPreviousPage(DataTable table)

canSelectNextPage

public static boolean canSelectNextPage(DataTable table)

canSelectLastPage

public static boolean canSelectLastPage(DataTable table)

decode

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

executePaginationAction

public static void executePaginationAction(javax.faces.context.FacesContext context,
                                           DataTable table,
                                           java.lang.String actionStr)

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


Copyright © 1998-2010 TeamDev Ltd. All Rights Reserved.