Package de.studiocode.invui.gui.impl
Class PagedGUI
java.lang.Object
de.studiocode.invui.gui.impl.BaseGUI
de.studiocode.invui.gui.impl.PagedGUI
- All Implemented Interfaces:
Controllable,GUI,GUIParent
- Direct Known Subclasses:
SimplePagedItemsGUI,SimplePagedNestedGUI
A
GUI with pages.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintint[]abstract intprotected abstract List<SlotElement>getPageElements(int page) voidgoBack()voidprotected abstract voidhandlePageChange(int previous, int now) booleanbooleanbooleanvoidsetPage(int page) protected voidupdate()Methods inherited from class de.studiocode.invui.gui.impl.BaseGUI
addItems, addParent, applyStructure, cancelAnimation, closeForAllViewers, fill, fill, fill, fillBorders, fillColumn, fillRectangle, fillRectangle, fillRectangle, fillRectangle, fillRow, findAllCurrentViewers, findAllWindows, getAllVirtualInventories, getBackground, getHeight, getItem, getItem, getParents, getSize, getSlotElement, getSlotElement, getSlotElements, getWidth, handleClick, handleItemDrag, handleItemShift, handleSlotElementUpdate, handleVIDoubleClick, handleVIDrop, handleVIItemShift, handleVILeftClick, handleVINumberKey, handleVIOffHandKey, handleVIRightClick, handleVISlotElementClick, hasSlotElement, hasSlotElement, playAnimation, putIntoFirstVirtualInventory, remove, remove, removeParent, setBackground, setItem, setItem, setSlotElement, setSlotElement, updateControlItems
-
Constructor Details
-
PagedGUI
public PagedGUI(int width, int height, boolean infinitePages, int... itemListSlots) -
PagedGUI
-
-
Method Details
-
goForward
public void goForward() -
goBack
public void goBack() -
setPage
public void setPage(int page) -
hasNextPage
public boolean hasNextPage() -
hasPageBefore
public boolean hasPageBefore() -
update
protected void update() -
getCurrentPageIndex
public int getCurrentPageIndex() -
hasInfinitePages
public boolean hasInfinitePages() -
getItemListSlots
public int[] getItemListSlots() -
getPageAmount
public abstract int getPageAmount() -
getPageElements
-
handlePageChange
protected abstract void handlePageChange(int previous, int now)
-