|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kns.web.struts.form.KualiTableRenderFormMetadata
public class KualiTableRenderFormMetadata
This class holds the metadata necessary to render a table when displaytag is not being used.
Field Summary | |
---|---|
private int |
columnToSortIndex
Comment for columnToSortIndex |
private String |
columnToSortName
If it is not feasible to use an index for lookup, as with mapped properties in an AttributeSet, it may be necessary to store a string value |
private int |
firstRowIndex
|
private int |
lastRowIndex
|
private int |
previouslySortedColumnIndex
when the looked results screen was rendered, the index of the column that the results were sorted on. |
private String |
previouslySortedColumnName
When the screen was last rendered, the column name on which it was previously sorted -- this is important for toggling between ascending and descending sort orders |
private int |
resultsActualSize
The number of rows that match the query criteria |
private int |
resultsLimitedSize
The number of rows that match the query criteria or the max results limit size (if applicable), whichever is less |
private boolean |
sortDescending
|
private int |
switchToPageNumber
|
private int |
totalNumberOfPages
|
private int |
viewedPageNumber
|
Constructor Summary | |
---|---|
KualiTableRenderFormMetadata()
|
Method Summary | |
---|---|
int |
getColumnToSortIndex()
Gets the columnToSortIndex attribute. |
String |
getColumnToSortName()
|
int |
getFirstRowIndex()
Gets the firstRowIndex attribute. |
int |
getLastRowIndex()
Gets the lastRowIndex attribute. |
int |
getPreviouslySortedColumnIndex()
Gets the previouslySortedColumnIndex attribute. |
String |
getPreviouslySortedColumnName()
|
int |
getResultsActualSize()
Gets the resultsActualSize attribute. |
int |
getResultsLimitedSize()
Gets the resultsLimitedSize attribute. |
int |
getSwitchToPageNumber()
Gets the switchToPageNumber attribute. |
int |
getTotalNumberOfPages()
Gets the totalNumberOfPages attribute. |
int |
getViewedPageNumber()
Gets the viewedPageNumber attribute. |
boolean |
isSortDescending()
Gets the sortDescending attribute. |
void |
jumpToFirstPage(int listSize,
int maxRowsPerPage)
Sets the paging form parameters to go to the first page of the list |
void |
jumpToLastPage(int listSize,
int maxRowsPerPage)
Sets the paging form parameters to go to the last page of the list |
void |
jumpToPage(int pageNumber,
int listSize,
int maxRowsPerPage)
Sets the paging form parameters to go to the specified page of the list |
void |
setColumnToSortIndex(int columnToSortIndex)
Sets the columnToSortIndex attribute value. |
void |
setColumnToSortName(String columnToSortName)
|
void |
setFirstRowIndex(int firstRowIndex)
Sets the firstRowIndex attribute value. |
void |
setLastRowIndex(int lastRowIndex)
Sets the lastRowIndex attribute value. |
void |
setPreviouslySortedColumnIndex(int previouslySortedColumnIndex)
Sets the previouslySortedColumnIndex attribute value. |
void |
setPreviouslySortedColumnName(String previousSortedColumnName)
|
void |
setResultsActualSize(int resultsActualSize)
Sets the resultsActualSize attribute value. |
void |
setResultsLimitedSize(int resultsLimitedSize)
Sets the resultsLimitedSize attribute value. |
void |
setSortDescending(boolean sortDescending)
Sets the sortDescending attribute value. |
void |
setSwitchToPageNumber(int switchToPageNumber)
Sets the switchToPageNumber attribute value. |
void |
setTotalNumberOfPages(int totalNumberOfPages)
Sets the totalNumberOfPages attribute value. |
void |
setViewedPageNumber(int viewedPageNumber)
Sets the viewedPageNumber attribute value. |
void |
sort(List<?> items,
int maxRowsPerPage)
Sorts a list on the form according to the form metadata (sortColumName, previouslySortedColumnName) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int viewedPageNumber
private int totalNumberOfPages
private int firstRowIndex
private int lastRowIndex
private int switchToPageNumber
private int resultsActualSize
private int resultsLimitedSize
private int previouslySortedColumnIndex
private int columnToSortIndex
columnToSortIndex
private String columnToSortName
private String previouslySortedColumnName
private boolean sortDescending
Constructor Detail |
---|
public KualiTableRenderFormMetadata()
Method Detail |
---|
public int getColumnToSortIndex()
public void setColumnToSortIndex(int columnToSortIndex)
columnToSortIndex
- The columnToSortIndex to set.public String getColumnToSortName()
public void setColumnToSortName(String columnToSortName)
public int getPreviouslySortedColumnIndex()
public void setPreviouslySortedColumnIndex(int previouslySortedColumnIndex)
previouslySortedColumnIndex
- The previouslySortedColumnIndex to set.public String getPreviouslySortedColumnName()
public void setPreviouslySortedColumnName(String previousSortedColumnName)
previousSortedColumnName
- the previousSortedColumnName to setpublic int getResultsActualSize()
public void setResultsActualSize(int resultsActualSize)
resultsActualSize
- The resultsActualSize to set.public int getResultsLimitedSize()
public void setResultsLimitedSize(int resultsLimitedSize)
resultsLimitedSize
- The resultsLimitedSize to set.public int getSwitchToPageNumber()
public void setSwitchToPageNumber(int switchToPageNumber)
switchToPageNumber
- The switchToPageNumber to set.public int getViewedPageNumber()
public void setViewedPageNumber(int viewedPageNumber)
viewedPageNumber
- The viewedPageNumber to set.public int getTotalNumberOfPages()
public void setTotalNumberOfPages(int totalNumberOfPages)
totalNumberOfPages
- The totalNumberOfPages to set.public int getFirstRowIndex()
public void setFirstRowIndex(int firstRowIndex)
firstRowIndex
- The firstRowIndex to set.public int getLastRowIndex()
public void setLastRowIndex(int lastRowIndex)
lastRowIndex
- The lastRowIndex to set.public boolean isSortDescending()
public void setSortDescending(boolean sortDescending)
sortDescending
- The sortDescending to set.public void jumpToFirstPage(int listSize, int maxRowsPerPage)
listSize
- size of table being renderedmaxRowsPerPage
- public void jumpToLastPage(int listSize, int maxRowsPerPage)
listSize
- size of table being renderedmaxRowsPerPage
- public void jumpToPage(int pageNumber, int listSize, int maxRowsPerPage)
pageNumber
- first page is 0, must be non-negative. If the list is not large enough to have the page specified, then
this method will be equivalent to calling jumpToLastPage.listSize
- size of table being renderedmaxRowsPerPage
- jumpToLastPage(int, int)
public void sort(List<?> items, int maxRowsPerPage)
memberTableMetadata
- items
- maxRowsPerPage
-
WorkflowException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |