|
Oracle | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compoze.util.PageControls
public class PageControls
Constructor Summary | |
---|---|
PageControls(int iPageSize)
Constructor. |
Method Summary | |
---|---|
int |
getFromIndex()
Gets the from index. |
int |
getNextPageNumber()
Gets the next page. |
int |
getNumberOfItems()
Gets the number of items. |
int |
getPageNumber()
Gets the page. |
int |
getPageSize()
Sets the page size. |
int |
getPreviousPageNumber()
Gets the previous page. |
int |
getToIndex()
Gets the to index. |
int |
getTotalPageCount()
Gets the total number of pages. |
void |
init(int iNumberOfItems,
int iPageNumber)
Initialize. |
boolean |
isFirstPage()
Checks if this is the first page. |
boolean |
isInitialized()
Checks if the controls are initialized. |
boolean |
isLastPage()
Checks if this is the last page. |
void |
setPageSize(int iPageSize)
Gets the page size. |
java.lang.String |
toString()
Returns the string representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PageControls(int iPageSize)
iPageSize
- the number of items to display on a single pageMethod Detail |
---|
public void init(int iNumberOfItems, int iPageNumber)
iNumberOfItems
- the number of items per pageiPageNumber
- the page numberpublic boolean isInitialized()
true
if the controls are initializedpublic int getFromIndex()
public int getToIndex()
public int getNumberOfItems()
public int getPreviousPageNumber()
public boolean isFirstPage()
true
if this is the first page; false
otherwisepublic boolean isLastPage()
true
if this is the last page; false
otherwisepublic int getPageNumber()
public int getPageSize()
public void setPageSize(int iPageSize)
iPageSize
- the page size (must be greater than zero)public int getNextPageNumber()
public int getTotalPageCount()
public java.lang.String toString()
toString
in class java.lang.Object
|
Oracle | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |