Class AbstractPaginatedMenu<T>
java.lang.Object
net.okocraft.box.feature.gui.api.menu.paginate.AbstractPaginatedMenu<T>
- All Implemented Interfaces:
Menu
,PaginatedMenu
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractPaginatedMenu
(int rows, @NotNull List<T> list, @NotNull TypedKey<Integer> currentPageKey) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
addAdditionalButtons
(@NotNull PlayerSession session, @NotNull List<Button> buttons) protected abstract @NotNull Button
createButton
(T instance, int slot) getButtons
(@NotNull PlayerSession session) int
getCurrentPage
(@NotNull PlayerSession session) final int
final int
final int
getRows()
void
setCurrentPage
(@NotNull PlayerSession session, int page)
-
Constructor Details
-
AbstractPaginatedMenu
-
-
Method Details
-
getRows
public final int getRows() -
getMaxPage
public final int getMaxPage()- Specified by:
getMaxPage
in interfacePaginatedMenu
-
getIconsPerPage
public final int getIconsPerPage()- Specified by:
getIconsPerPage
in interfacePaginatedMenu
-
getCurrentPage
- Specified by:
getCurrentPage
in interfacePaginatedMenu
-
setCurrentPage
- Specified by:
setCurrentPage
in interfacePaginatedMenu
-
getButtons
- Specified by:
getButtons
in interfaceMenu
-
createButton
-
addAdditionalButtons
protected abstract void addAdditionalButtons(@NotNull @NotNull PlayerSession session, @NotNull @NotNull List<Button> buttons)
-