Package ru.bgcrm.model
Class Page
java.lang.Object
ru.bgcrm.model.Page
Pagination data.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
int
int
int
boolean
void
void
setPageCount
(int pageCount) void
setPageIndex
(int value) Sets page index.void
setPageSize
(int pageSize) void
setRecordCount
(int recordCount) Sets record count and calculated amount of pages.
-
Field Details
-
DEFAULT_PAGE_SIZE
public static final int DEFAULT_PAGE_SIZE- See Also:
-
RECORD_COUNT
- See Also:
-
PAGE_COUNT
- See Also:
-
PAGE_INDEX
- See Also:
-
PAGE_SIZE
- See Also:
-
PAGEABLE_ID
- See Also:
-
PAGE_INDEX_NO_PAGING
public static int PAGE_INDEX_NO_PAGING
-
-
Constructor Details
-
Page
public Page(int pageIndex, int pageSize) -
Page
public Page()
-
-
Method Details
-
setData
-
isPaginationEnabled
public boolean isPaginationEnabled()- Returns:
pageIndex > 0
-
getPageIndex
public int getPageIndex() -
setPageIndex
public void setPageIndex(int value) Sets page index.- Parameters:
value
- required page index,PAGE_INDEX_NO_PAGING
for disabling pagination.
-
getPageSize
public int getPageSize() -
setPageSize
public void setPageSize(int pageSize) -
getPageCount
public int getPageCount() -
setPageCount
public void setPageCount(int pageCount) -
getPageFirstRecordNumber
public int getPageFirstRecordNumber() -
getRecordCount
public int getRecordCount() -
setRecordCount
public void setRecordCount(int recordCount) Sets record count and calculated amount of pages.- Parameters:
recordCount
-
-