@Deprecated public final class TableRenderUtil extends Object
Modifier and Type | Method and Description |
---|---|
static int |
computeLastIndexForPage(int pageNumber,
int resultSize,
int maxRowsPerPage)
Deprecated.
This method computes the index of the last row of the given page
|
static int |
computeStartIndexForPage(int pageNumber,
int resultSize,
int maxRowsPerPage)
Deprecated.
This method computes the list index of the first row of the given page
|
static int |
computeTotalNumberOfPages(int resultSize,
int maxRowsPerPage)
Deprecated.
Returns the minimum number of pages needed to display a result set of the given page
|
public static int computeTotalNumberOfPages(int resultSize, int maxRowsPerPage)
resultSize
- number of resultsmaxRowsPerPage
- maximum number of rowspublic static int computeStartIndexForPage(int pageNumber, int resultSize, int maxRowsPerPage)
pageNumber
- first page is index 0resultSize
- the size of the list being renderedmaxRowsPerPage
- max number of rows on a pagepublic static int computeLastIndexForPage(int pageNumber, int resultSize, int maxRowsPerPage)
pageNumber
- first page is index 0resultSize
- the size of the list being renderedmaxRowsPerPage
- max number of rows on a pageCopyright © 2005–2016 The Kuali Foundation. All rights reserved.