| java.lang.Object org.kuali.core.util.TableRenderUtil
TableRenderUtil | public class TableRenderUtil (Code) | | 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.
|
computeLastIndexForPage | public static int computeLastIndexForPage(int pageNumber, int resultSize, int maxRowsPerPage)(Code) | | This method computes the index of the last row of the given page
Parameters: pageNumber - first page is index 0 Parameters: resultSize - the size of the list being rendered Parameters: maxRowsPerPage - max number of rows on a page the index in the result list of the last row of the given page |
computeStartIndexForPage | public static int computeStartIndexForPage(int pageNumber, int resultSize, int maxRowsPerPage)(Code) | | This method computes the list index of the first row of the given page
Parameters: pageNumber - first page is index 0 Parameters: resultSize - the size of the list being rendered Parameters: maxRowsPerPage - max number of rows on a page the index in the result list of the first row of the given page |
computeTotalNumberOfPages | public static int computeTotalNumberOfPages(int resultSize, int maxRowsPerPage)(Code) | | Returns the minimum number of pages needed to display a result set of the given page
Parameters: resultSize - number of results Parameters: maxRowsPerPage - maximum number of rows |
|
|