|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--portlets.compoze.groupware.Pagination
This class represents pagination information such as start and end indices and total count.
Constructor Summary | |
Pagination(int iItemsPerPage)
Constructor. |
Method Summary | |
void |
dump()
Dumps the pagination information to System.out . |
int |
getEndIndex()
Gets the end index. |
int |
getFirstPageIndex()
Gets the first page index. |
int |
getItemsPerPage()
Gets the number of items per page of this pagination. |
int |
getLastPageIndex()
Gets the last page index. |
int |
getNextPageIndex()
Gets the next page index. |
int |
getPreviousPageIndex()
Gets the previous page index. |
int |
getStartIndex()
Gets the start index. |
int |
getTotalItemCount()
Gets the total item count. |
void |
init(int iStartIndex,
int iTotalItemCount)
Initializes the pagination controls. |
boolean |
isFirstPage()
Checks if this pagination is the first page. |
boolean |
isLastPage()
Checks if this pagination is the last page. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Pagination(int iItemsPerPage)
iItemsPerPage
- the number of items per pageMethod Detail |
public void init(int iStartIndex, int iTotalItemCount)
iStartIndex
- the start indexiTotalItemCount
- the total number of itemspublic int getStartIndex()
public int getEndIndex()
public int getTotalItemCount()
public boolean isFirstPage()
true
if this is the first page; false
otherwisepublic boolean isLastPage()
true
if this is the last page; false
otherwisepublic int getFirstPageIndex()
public int getLastPageIndex()
public int getNextPageIndex()
public int getPreviousPageIndex()
public int getItemsPerPage()
public void dump()
System.out
.
|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |