|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.tibco.bpm.web.client.model.types.ListPage<T>
public class ListPage<T>
Used to transfer a page of data from the server to the client.
Contains a list of items in the page along with details of the total number of items and total pages on the server.
| Constructor Summary | |
|---|---|
ListPage()
|
|
| Method Summary | |
|---|---|
long |
getCurrentPageNumber()
The current page number. |
long |
getEndPosition()
Position of last item in the page. |
java.util.ArrayList<T> |
getListItems()
The list of items ( for this page ). |
long |
getPageSize()
Size of the page ( number of items ). |
long |
getStartPosition()
Position of first item in the page. |
long |
getTimeMillis()
|
long |
getTotalItems()
Total number of items available. |
long |
getTotalPages()
Total number of pages available. |
void |
setCurrentPageNumber(long currentPageNumber)
The current page number. |
void |
setEndPosition(long endPosition)
Position of last item in the page. |
void |
setListItems(java.util.ArrayList<T> listItems)
The list of items ( for this page ). |
void |
setPageSize(long pageSize)
Size of the page ( number of items ). |
void |
setStartPosition(long startPosition)
Position of first item in the page. |
void |
setTimeMillis(long mS)
|
void |
setTotalItems(long totalItems)
Total number of items available. |
void |
setTotalPages(long totalPages)
Total number of pages available. |
void |
sortList(java.util.Comparator<T> comp)
Method to sort the page. |
void |
updatePage(long start,
long pageSize)
Update the page with a new start item and page size. |
void |
updatePage(long start,
long pageSize,
long totalItems)
Update the page with a new start item, page size and total number of items. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ListPage()
| Method Detail |
|---|
public long getTimeMillis()
public void setTimeMillis(long mS)
set - time stamp in millisecondspublic void sortList(java.util.Comparator<T> comp)
Comparator - functions for type Comparatorpublic long getEndPosition()
public void setEndPosition(long endPosition)
endPosition - The endPosition to set.public long getStartPosition()
public void setStartPosition(long startPosition)
startPosition - The startPosition to set.public long getPageSize()
public void setPageSize(long pageSize)
pageSize - The pageSize to set.public long getCurrentPageNumber()
public void setCurrentPageNumber(long currentPageNumber)
currentPageNumber - The currentPageNumber to set.public long getTotalPages()
public void setTotalPages(long totalPages)
totalPages - The totalPages to set.public long getTotalItems()
public void setTotalItems(long totalItems)
totalItems - The totalItems to set.public java.util.ArrayList<T> getListItems()
public void setListItems(java.util.ArrayList<T> listItems)
listItems - The listItems to set.
public void updatePage(long start,
long pageSize,
long totalItems)
Start - position for the page.Size - of the page.Total - number of items on the server.
public void updatePage(long start,
long pageSize)
Start - position for the page.Size - of the page.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||