|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.framework.request.PageCursor
public class PageCursor
Defines parameters associated with a UI page cursor.
Nested Class Summary | |
---|---|
protected class |
PageCursor.DefaultRecordsPerPageProvider
Default records per page provider. |
static interface |
PageCursor.IRecordsPerPageProvider
Records per page provider. |
Field Summary | |
---|---|
protected int |
_currentPage
|
protected int |
_pagesPerCursor
|
protected PageCursor.IRecordsPerPageProvider |
_recordsPerPageProvider
|
protected int |
_totalRecordCount
|
Constructor Summary | |
---|---|
PageCursor()
Default constructor. |
Method Summary | |
---|---|
void |
checkCurrentPage()
Check current page. |
int |
getCurrentPage()
Gets the current page for the cursor. |
int |
getEndPage()
Gets the ending page for the cursor. |
int |
getEndRecord()
Gets the ending record for the current page. |
boolean |
getHasNextPage()
Determine if the cursor has a next page. |
boolean |
getHasPreviousPage()
Determine if the cursor has a previous page. |
int |
getNextPage()
Gets the next page. |
int |
getPagesPerCursor()
Gets the maximum number of pages to be displayed per cursor. |
int |
getPreviousPage()
Gets the previous page. |
int |
getRecordsPerPage()
Gets the maximum number of records to be displayed per page. |
int |
getStartPage()
Gets the starting page for the cursor. |
int |
getStartRecord()
Gets the starting record for the current page. |
int |
getTotalPageCount()
Gets the total page count. |
int |
getTotalRecordCount()
Gets the total record count. |
void |
setCurrentPage(int currentPage)
Sets the current page for the cursor. |
void |
setPagesPerCursor(int pagesPerCursor)
Sets the maximum number of pages to be displayed per cursor. |
void |
setRecordsPerPage(int recordsPerPage)
Sets the maximum number of records to be displayed per page. |
void |
setRecordsPerPageProvider(PageCursor.IRecordsPerPageProvider recordsPerPageProvider)
Sets records per page provider. |
void |
setTotalRecordCount(int totalRecordCount)
Sets the total record count. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int _currentPage
protected int _pagesPerCursor
protected int _totalRecordCount
protected PageCursor.IRecordsPerPageProvider _recordsPerPageProvider
Constructor Detail |
---|
public PageCursor()
Method Detail |
---|
public int getCurrentPage()
getCurrentPage
in interface IPageCursor
public void setCurrentPage(int currentPage)
setCurrentPage
in interface IPageCursor
currentPage
- the current pagepublic int getEndPage()
getEndPage
in interface IPageCursor
public int getEndRecord()
getEndRecord
in interface IPageCursor
public boolean getHasNextPage()
getHasNextPage
in interface IPageCursor
public boolean getHasPreviousPage()
getHasPreviousPage
in interface IPageCursor
public int getNextPage()
getNextPage
in interface IPageCursor
public int getPagesPerCursor()
getPagesPerCursor
in interface IPageCursor
public void setPagesPerCursor(int pagesPerCursor)
setPagesPerCursor
in interface IPageCursor
pagesPerCursor
- the maximum number of pages per cursorpublic int getPreviousPage()
getPreviousPage
in interface IPageCursor
public int getRecordsPerPage()
getRecordsPerPage
in interface IPageCursor
public void setRecordsPerPage(int recordsPerPage)
setRecordsPerPage
in interface IPageCursor
recordsPerPage
- the maximum number of records per pagepublic void setRecordsPerPageProvider(PageCursor.IRecordsPerPageProvider recordsPerPageProvider)
setRecordsPerPageProvider
in interface IPageCursor
recordsPerPageProvider
- records per page providerpublic int getStartPage()
getStartPage
in interface IPageCursor
public int getStartRecord()
getStartRecord
in interface IPageCursor
public int getTotalPageCount()
The total page count is based upon the total record count and the number of records per page.
getTotalPageCount
in interface IPageCursor
public int getTotalRecordCount()
This is the total record count associated with a query. It is used in conjunction with recordsPerPage to determine the number of pages available to the cursor.
getTotalRecordCount
in interface IPageCursor
public void setTotalRecordCount(int totalRecordCount)
This is the total record count associated with a query. It is used in conjunction with recordsPerPage to determine the number of pages available to the cursor.
setTotalRecordCount
in interface IPageCursor
totalRecordCount
- the total record countpublic void checkCurrentPage()
checkCurrentPage
in interface IPageCursor
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |