Package wbs.utils.util.menus
Class PagedMenu<T>
java.lang.Object
wbs.utils.util.menus.WbsMenu
wbs.utils.util.menus.PagedMenu<T>
- All Implemented Interfaces:
org.bukkit.event.Listener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprotected final intprotected final intprotected final intprotected final intprotected final intFields inherited from class wbs.utils.util.menus.WbsMenu
closeAction, closeActionMenu, plugin, rows -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidgetPage(int page) protected MenuSlotgetPageChangeSlot(int page, org.bukkit.Material material, String display) Methods inherited from class wbs.utils.util.menus.WbsMenu
getColumn, getMaxSlot, getRow, getSlotNumber, hasMenuOpen, isMenu, isRegistered, onClick, onClose, register, setBanners, setCloseAction, setCloseActionMenu, setColumn, setNextFreeSlot, setNextFreeSlot, setNextFreeSlot, setNextFreeSlot, setOutline, setOutline, setRow, setSlot, setSlot, setUnregisterOnClose, showTo, unregister, update, update, update
-
Field Details
-
lastPageNumber
protected final int lastPageNumber -
maxRows
protected final int maxRows -
maxColumns
protected final int maxColumns -
maxSlots
protected final int maxSlots -
rowStart
protected final int rowStart -
page
protected final int page -
pageSlots
-
-
Constructor Details
-
PagedMenu
public PagedMenu(WbsPlugin plugin, Collection<T> toDisplay, String title, String id, int rowStart, int maxRows, int minColumn, int maxColumn, int page)
-
-
Method Details
-
fillNextPageSlots
protected void fillNextPageSlots() -
fillPrevPageSlots
protected void fillPrevPageSlots() -
getPageChangeSlot
-
getSlot
-
getPage
-