Package org.kuali.rice.kns.util
Class TableRenderUtil
java.lang.Object
org.kuali.rice.kns.util.TableRenderUtil
Deprecated.
Only used in KNS classes, use KRAD.
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
Modifier and TypeMethodDescriptionstatic intcomputeLastIndexForPage(int pageNumber, int resultSize, int maxRowsPerPage) Deprecated.This method computes the index of the last row of the given pagestatic intcomputeStartIndexForPage(int pageNumber, int resultSize, int maxRowsPerPage) Deprecated.This method computes the list index of the first row of the given pagestatic intcomputeTotalNumberOfPages(int resultSize, int maxRowsPerPage) Deprecated.Returns the minimum number of pages needed to display a result set of the given page
-
Method Details
-
computeTotalNumberOfPages
public static int computeTotalNumberOfPages(int resultSize, int maxRowsPerPage) Deprecated.Returns the minimum number of pages needed to display a result set of the given page- Parameters:
resultSize- number of resultsmaxRowsPerPage- maximum number of rows- Returns:
-
computeStartIndexForPage
public static int computeStartIndexForPage(int pageNumber, int resultSize, int maxRowsPerPage) Deprecated.This method computes the list index of the first row of the given page- Parameters:
pageNumber- first page is index 0resultSize- the size of the list being renderedmaxRowsPerPage- max number of rows on a page- Returns:
- the index in the result list of the first row of the given page
-
computeLastIndexForPage
public static int computeLastIndexForPage(int pageNumber, int resultSize, int maxRowsPerPage) Deprecated.This method computes the index of the last row of the given page- Parameters:
pageNumber- first page is index 0resultSize- the size of the list being renderedmaxRowsPerPage- max number of rows on a page- Returns:
- the index in the result list of the last row of the given page
-