Class PagedMenu
- java.lang.Object
-
- com.alessiodp.core.bukkit.gui.menu.Menu
-
- com.alessiodp.core.bukkit.gui.menu.PagedMenu
-
-
Field Summary
Fields Modifier and Type Field Description protected HashMap<Integer,MenuContent>contentsprotected intcurrentPageprotected org.bukkit.inventory.ItemStacknextPageprotected org.bukkit.inventory.ItemStackpreviousPage-
Fields inherited from class com.alessiodp.core.bukkit.gui.menu.Menu
content, invalidateItems, inventoryType, lengthRow, menuManager, rows, title, updateOnClick
-
-
Constructor Summary
Constructors Constructor Description PagedMenu(MenuManager menuManager, String title, int rows, boolean updateOnClick)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MenuContentgetContent()protected voidnextPage()protected voidpopulateInventory(org.bukkit.inventory.Inventory inventory)protected voidpreviousPage()-
Methods inherited from class com.alessiodp.core.bukkit.gui.menu.Menu
close, isOpen, makeInventory, onClick, onClose, open, update
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.alessiodp.core.bukkit.gui.menu.IMenu
invalidateItems, setInvalidateItems
-
-
-
-
Field Detail
-
currentPage
protected int currentPage
-
previousPage
protected org.bukkit.inventory.ItemStack previousPage
-
nextPage
protected org.bukkit.inventory.ItemStack nextPage
-
contents
protected final HashMap<Integer,MenuContent> contents
-
-
Constructor Detail
-
PagedMenu
public PagedMenu(MenuManager menuManager, String title, int rows, boolean updateOnClick)
-
-
Method Detail
-
populateInventory
protected void populateInventory(org.bukkit.inventory.Inventory inventory)
- Overrides:
populateInventoryin classMenu
-
nextPage
protected void nextPage()
-
previousPage
protected void previousPage()
-
getContent
public MenuContent getContent()
-
-