|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for lists that support paging
Method Summary | |
int |
getPageIndex()
Returns the current page index, which is a zero based integer. |
int |
getPageSize()
Returns the maximum number of items per page |
void |
gotoPage(int pageNumber)
Moves to a specified page. |
boolean |
isFirstPage()
Is the current page the first page? |
boolean |
isLastPage()
Is the current page the last page? |
boolean |
isMiddlePage()
Is the current page a middle page (ie not first or last)? |
boolean |
isNextPageAvailable()
Is a page available after the current page? |
boolean |
isPreviousPageAvailable()
Is a page available before the current page? |
boolean |
nextPage()
Moves to the next page after the current page. |
boolean |
previousPage()
Moves to the page before the current page. |
Methods inherited from interface java.util.List |
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
Method Detail |
public int getPageSize()
public boolean isFirstPage()
public boolean isMiddlePage()
public boolean isLastPage()
public boolean isNextPageAvailable()
public boolean isPreviousPageAvailable()
public boolean nextPage()
public boolean previousPage()
public void gotoPage(int pageNumber)
pageNumber
- The page to go topublic int getPageIndex()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |