public class PaginationContext extends Object
Constructor and Description |
---|
PaginationContext() |
Modifier and Type | Method and Description |
---|---|
int |
getCountElement() |
static PaginationContext |
getInstance(javax.servlet.http.HttpServletRequest request,
String key) |
static PaginationContext |
getInstance(javax.servlet.http.HttpServletRequest request,
String key,
int inCountElement,
int elemByPage) |
String |
getKey() |
int |
getMaxPage() |
int |
getPage() |
int |
getPageSize() |
boolean |
isPageVisible(int itemNumber) |
void |
pageAction(javax.servlet.http.HttpServletRequest request) |
String |
renderCommand(ContentContext ctx,
String url) |
void |
setMaxPage(int maxPage) |
void |
setPage(int page) |
void |
setPageSize(int pageSize) |
String |
transformURLFirstPage(String url) |
String |
transformURLLastPage(String url) |
String |
transformURLNextPage(String url) |
String |
transformURLPreviousPage(String url) |
String |
transformURLToPage(String url,
int page) |
public static PaginationContext getInstance(javax.servlet.http.HttpServletRequest request, String key) throws ServiceException
ServiceException
public static PaginationContext getInstance(javax.servlet.http.HttpServletRequest request, String key, int inCountElement, int elemByPage) throws ServiceException
ServiceException
public void pageAction(javax.servlet.http.HttpServletRequest request)
public int getPage()
public void setPage(int page)
public int getMaxPage()
public void setMaxPage(int maxPage)
public int getPageSize()
public void setPageSize(int pageSize)
public boolean isPageVisible(int itemNumber)
public String renderCommand(ContentContext ctx, String url) throws FileNotFoundException, IOException
FileNotFoundException
IOException
public int getCountElement()
public String getKey()
Copyright © 2012-2018. All Rights Reserved.