Package org.kingdoms.gui.pagination
Class GUIPagination<T>
java.lang.Object
org.kingdoms.gui.pagination.GUIPagination<T>
-
Constructor Summary
ConstructorsConstructorDescriptionGUIPagination(ReusableOptionHandler option, Collection<T> paginatedElements) -
Method Summary
Modifier and TypeMethodDescriptionGets the elements for the current GUI page.static voidstatic <T> GUIPagination<T> paginate(org.kingdoms.gui.InteractiveGUI gui, Collection<T> collection, String option, int page, Consumer<Integer> openPage)
-
Constructor Details
-
GUIPagination
-
-
Method Details
-
getOption
-
getPaginatedElements
Gets the elements for the current GUI page. -
paginate
-
paginate
public static <T> GUIPagination<T> paginate(org.kingdoms.gui.InteractiveGUI gui, Collection<T> collection, String option, int page, Consumer<Integer> openPage)
-