Class PageBag
java.lang.Object
de.chojo.jdautil.pagination.bag.PageBag
- All Implemented Interfaces:
IPageBag
- Direct Known Subclasses:
ListPageBag, PrivatePageBag
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcurrent()Get the current index of the page.voidcurrent(int page) Set the current index of the page.booleanhasNext()Checks if there is a next pagebooleanChecks if there is a previous pageintpages()The amount of pages.voidGoes to the next page indexvoidGoes to the previous page indexMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IPageBag
buildEmptyPage, buildPage, buttons, canInteract, isEmpty
-
Constructor Details
-
PageBag
public PageBag(int pages)
-
-
Method Details
-
pages
-
current
-
scrollNext
public void scrollNext()Description copied from interface:IPageBagGoes to the next page index- Specified by:
scrollNextin interfaceIPageBag
-
hasNext
-
scrollPrevious
public void scrollPrevious()Description copied from interface:IPageBagGoes to the previous page index- Specified by:
scrollPreviousin interfaceIPageBag
-
hasPrevious
public boolean hasPrevious()Description copied from interface:IPageBagChecks if there is a previous page- Specified by:
hasPreviousin interfaceIPageBag- Returns:
- true when there is a previous page
-
current
-