public class ListPageInfo<T>
extends java.lang.Object
| Constructor and Description |
|---|
ListPageInfo(int numPerPage) |
| Modifier and Type | Method and Description |
|---|---|
T |
firstItem()
the first item in list
|
java.util.List<T> |
getDataList() |
T |
getItem(int position) |
int |
getListLength() |
int |
getNumPerPage() |
int |
getPage()
start from 0
|
int |
getStart() |
void |
goToHead() |
boolean |
hasMore() |
boolean |
isEmpty() |
boolean |
isFirstPage() |
T |
lastItem()
the last item in list
|
boolean |
nextPage()
try to move to next page
|
boolean |
tryEnterLock() |
void |
unlock() |
void |
updateListInfo(java.util.List<T> dataList,
boolean hasMore) |
void |
updateListInfo(java.util.List<T> dataList,
int total) |
public void updateListInfo(java.util.List<T> dataList, int total)
public void updateListInfo(java.util.List<T> dataList, boolean hasMore)
public void unlock()
public boolean tryEnterLock()
public int getStart()
public int getNumPerPage()
public int getPage()
public void goToHead()
public T getItem(int position)
public boolean isEmpty()
public boolean nextPage()
public java.util.List<T> getDataList()
public int getListLength()
public T firstItem()
public T lastItem()
public boolean hasMore()
public boolean isFirstPage()