All Implemented Interfaces:
Sizeable

public class PaginatorContentPane extends SimpleItemGUIPane
The ContentPane of a PaginatorGUIPane. Internal use only.
  • Constructor Details

    • PaginatorContentPane

      protected PaginatorContentPane(GUI gui, Vector2d minSize, Vector2d maxSize, PaginatorGUIPane paginatorGUIPane)
      Creates a new PaginatorContentPane
      Parameters:
      gui - The GUI
      minSize - The minimum size of the Pane
      maxSize - The maximum size of the Pane
      paginatorGUIPane - The according Paginator
  • Method Details

    • updateSize

      public void updateSize(Sizeable parent)
      Updates the size of the pane based on the size of the paginator.
      Overrides:
      updateSize in class BaseSimpleGUIPane<GUIItem,SimpleItemGUIPane>
      Parameters:
      parent - The parent Pane or GUI (Sizeable)
    • onSizeChange

      public void onSizeChange()
      Is called when the size of the Pane changes. Here it resets the Items in the Paginator.
      Overrides:
      onSizeChange in class GUIPane
    • setItems

      public void setItems()
      Sets the Items in the Paginator