Paginator

public abstract class Paginator implements PaginatorInterface

Fields

_currentRecordsCounter

protected int _currentRecordsCounter

_pageCount

protected int _pageCount

_totalRecords

protected int _totalRecords

currentPage

protected int currentPage

dataListener

protected DataListener dataListener

isLastPage

protected boolean isLastPage

logTag

protected String logTag

newPageStartPoint

public int newPageStartPoint

pageSize

protected int pageSize

populating

protected boolean populating

Monitor if we are currently populating.

Constructors

Paginator

public Paginator(DataListener dataListener)

Methods

fetchNextPageData

public void fetchNextPageData()

getCurrentPage

protected int getCurrentPage()

getCurrentPageString

public String getCurrentPageString()

getNextPageRecords

protected abstract List<Map> getNextPageRecords(int startPoint, int endPoint)

getPageCount

public int getPageCount()

getTotalRecords

public int getTotalRecords()

setPageSize

public void setPageSize(int pageSize)