Constructor and Description |
---|
Pager() |
Modifier and Type | Method and Description |
---|---|
List<T> |
getCurrentItems()
Alias for getItems()
|
int |
getCurrentPage()
The current page number of data, starting at 1
|
List<T> |
getItems()
All the returned items.
|
int |
getItemsPerPage()
The number of items per page
|
int |
getNextPageNumber()
The page number for the next page
|
int |
getPageCount()
The total available pages of items matching the filterchain
|
int |
getPreviousPageNumber()
The page number for the previous page.
|
List<Integer> |
getSurroundingPages() |
boolean |
isHasNextPage()
True if there is a next page of data.
|
boolean |
isHasPreviousPage()
True if there is a previous page of data (false if the page number is 1)
|
Pager |
setCurrentItems(List<T> currentItems) |
Pager |
setCurrentPage(int currentPage) |
Pager |
setHasNextPage(boolean hasNextPage) |
Pager |
setHasPreviousPage(boolean hasPreviousPage) |
Pager |
setItemsPerPage(int itemsPerPage) |
Pager |
setNextPageNumber(int nextPageNumber) |
Pager |
setPageCount(int pageCount) |
Pager |
setPreviousPageNumber(int previousPageNumber) |
public Pager()
public List<T> getCurrentItems()
public int getPageCount()
public int getCurrentPage()
public int getItemsPerPage()
public boolean isHasNextPage()
public boolean isHasPreviousPage()
public int getNextPageNumber()
public int getPreviousPageNumber()
public Pager setCurrentItems(List<T> currentItems)
public Pager setPageCount(int pageCount)
public Pager setCurrentPage(int currentPage)
public Pager setItemsPerPage(int itemsPerPage)
public Pager setHasNextPage(boolean hasNextPage)
public Pager setHasPreviousPage(boolean hasPreviousPage)
public Pager setNextPageNumber(int nextPageNumber)
public Pager setPreviousPageNumber(int previousPageNumber)
public List<Integer> getSurroundingPages()
Copyright © 2016. All rights reserved.