|
Esri Geoportal Server 1.0
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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 IPageCursorpublic void setCurrentPage(int currentPage)
setCurrentPage in interface IPageCursorcurrentPage - the current pagepublic int getEndPage()
getEndPage in interface IPageCursorpublic int getEndRecord()
getEndRecord in interface IPageCursorpublic boolean getHasNextPage()
getHasNextPage in interface IPageCursorpublic boolean getHasPreviousPage()
getHasPreviousPage in interface IPageCursorpublic int getNextPage()
getNextPage in interface IPageCursorpublic int getPagesPerCursor()
getPagesPerCursor in interface IPageCursorpublic void setPagesPerCursor(int pagesPerCursor)
setPagesPerCursor in interface IPageCursorpagesPerCursor - the maximum number of pages per cursorpublic int getPreviousPage()
getPreviousPage in interface IPageCursorpublic int getRecordsPerPage()
getRecordsPerPage in interface IPageCursorpublic void setRecordsPerPage(int recordsPerPage)
setRecordsPerPage in interface IPageCursorrecordsPerPage - the maximum number of records per pagepublic void setRecordsPerPageProvider(PageCursor.IRecordsPerPageProvider recordsPerPageProvider)
setRecordsPerPageProvider in interface IPageCursorrecordsPerPageProvider - records per page providerpublic int getStartPage()
getStartPage in interface IPageCursorpublic int getStartRecord()
getStartRecord in interface IPageCursorpublic int getTotalPageCount()
The total page count is based upon the total record count and the number of records per page.
getTotalPageCount in interface IPageCursorpublic 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 IPageCursorpublic 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 IPageCursortotalRecordCount - 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 | ||||||||