Package com.exedio.cops
Class Pager
java.lang.Object
com.exedio.cops.Pager
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoid
addParameters
(Cop cop) first()
int
getFrom()
int
getLimit()
int
int
getPage()
int
getTo()
int
getTotal()
int
boolean
boolean
void
init
(int page, int total) <E> List<E>
boolean
isFirst()
boolean
isLast()
boolean
isNeeded()
boolean
boolean
last()
newPages()
next()
previous()
switchLimit
(int newLimit)
-
Method Details
-
addParameters
-
getOffset
public int getOffset() -
getLimit
public int getLimit() -
init
public void init(int page, int total) -
init
- Returns:
- a subList of
all
corresponding the the current page of the pager.
-
isFirst
public boolean isFirst() -
isLast
public boolean isLast() -
first
-
last
-
previous
-
next
-
switchLimit
-
newLimits
-
hasBeforeNewPages
public boolean hasBeforeNewPages() -
hasAfterNewPages
public boolean hasAfterNewPages() -
newPages
-
getFrom
public int getFrom() -
getTo
public int getTo() -
getTotal
public int getTotal() -
isTotalEmpty
public boolean isTotalEmpty() -
getPage
public int getPage() -
getTotalPages
public int getTotalPages() -
isNeeded
public boolean isNeeded() -
isNeutral
public boolean isNeutral()
-