org.apache.beehive.netui.databinding.datagrid.services
Class PagerService

Object
  extended by PagerService

public class PagerService
extends Object


Field Summary
static String DEFAULT_PAGE_PARAM_NAME
           
static String DEFAULT_PAGE_SIZE_PARAM_NAME
           
 
Constructor Summary
PagerService(ServletRequest request, String namespace)
           
 
Method Summary
 String buildQueryParamForPage(int page)
           
 String buildQueryParamValueForPage(int page)
           
 int getCurrentPage()
           
 String getCurrentPageParamString()
           
static PagerService getInstance(JspContext jspContext, String namespace)
           
 String getNextPageQueryParam()
           
 int getPageSize()
           
 String getPrevPageQueryParam()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PAGE_PARAM_NAME

public static String DEFAULT_PAGE_PARAM_NAME

DEFAULT_PAGE_SIZE_PARAM_NAME

public static String DEFAULT_PAGE_SIZE_PARAM_NAME
Constructor Detail

PagerService

public PagerService(ServletRequest request,
                    String namespace)
Method Detail

getInstance

public static final PagerService getInstance(JspContext jspContext,
                                             String namespace)

getCurrentPage

public int getCurrentPage()

getPageSize

public int getPageSize()

getCurrentPageParamString

public String getCurrentPageParamString()

getNextPageQueryParam

public String getNextPageQueryParam()

getPrevPageQueryParam

public String getPrevPageQueryParam()

buildQueryParamForPage

public String buildQueryParamForPage(int page)

buildQueryParamValueForPage

public String buildQueryParamValueForPage(int page)