All Implemented Interfaces:
Sizeable

public class PaginatorControlsPane extends SimpleGUIPane
The Controls pane for a PaginatorGUIPane.
  • Field Details

    • FILL_ITEM

      public static GUIItem FILL_ITEM
      The default fill-item for the Pane
  • Constructor Details

    • PaginatorControlsPane

      public PaginatorControlsPane(GUI gui, PaginatorGUIPane paginatorGUIPane, Vector2d minSize, Vector2d maxSize, boolean autoSize, PaginatorControlsPosition position)
      Creates a new PaginatorControlsPane
      Parameters:
      gui - The GUI
      paginatorGUIPane - The according Paginator
      minSize - The minimum size of the Pane
      maxSize - The maximum size of the Pane
      autoSize - Whether the Pane should synchronize its width with the Paginator.
      position - The position where the Buttons should get rendered
    • PaginatorControlsPane

      public PaginatorControlsPane(GUI gui, PaginatorGUIPane paginatorGUIPane, Vector2d minSize, Vector2d maxSize, boolean autoSize, PaginatorControlsPosition position, NextPageGUIButton nextButton, PreviousPageGUIButton previousButton)
      Creates a new PaginatorControlsPane
      Parameters:
      gui - The GUI
      paginatorGUIPane - The according Paginator
      minSize - The minimum size of the Pane
      maxSize - The maximum size of the Pane
      autoSize - Whether the Pane should synchronize its width with the Paginator.
      position - The position where the Buttons should get rendered
      nextButton - The custom next-button
      previousButton - The custom previous-button
  • Method Details

    • updateSize

      public void updateSize(Sizeable parent)
      Updates its size if autoSize is enabled
      Overrides:
      updateSize in class BaseSimpleGUIPane<GUISection,SimpleGUIPane>
      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