|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kns.util.TableRenderUtil
public final class TableRenderUtil
This class provides utilities to support the rendering of tables in Kuali without using display tag. Normally, displaytag handles the rendering of Kuali tables on various screens, but there are situations where displaytag is inadequate for the task (e.g. multiple value lookups). In particular, display tag does not handle POSTing of forms when switching between pages and sorting.
Method Summary | |
---|---|
static int |
computeLastIndexForPage(int pageNumber,
int resultSize,
int maxRowsPerPage)
This method computes the index of the last row of the given page |
static int |
computeStartIndexForPage(int pageNumber,
int resultSize,
int maxRowsPerPage)
This method computes the list index of the first row of the given page |
static int |
computeTotalNumberOfPages(int resultSize,
int maxRowsPerPage)
Returns the minimum number of pages needed to display a result set of the given page |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static int computeTotalNumberOfPages(int resultSize, int maxRowsPerPage)
resultSize
- number of resultsmaxRowsPerPage
- maximum number of rows
public 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 page
public 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 page
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |