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

public abstract class PagedGUI extends BaseGUI
A GUI with pages.
See Also:
  • Constructor Details

    • PagedGUI

      public PagedGUI(int width, int height, boolean infinitePages, int... itemListSlots)
    • PagedGUI

      public PagedGUI(int width, int height, boolean infinitePages, Structure structure)
  • 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

      protected abstract List<SlotElement> getPageElements(int page)
    • handlePageChange

      protected abstract void handlePageChange(int previous, int now)