Class BasePaginatorControlsPane<P extends BasePaginatorControlsPane<P>>
java.lang.Object
de.placeblock.betterinventories.content.GUISection
de.placeblock.betterinventories.content.pane.GUIPane
de.placeblock.betterinventories.content.pane.impl.simple.BaseSimpleGUIPane<GUIItem,S>
de.placeblock.betterinventories.content.pane.impl.simple.BaseSimpleItemGUIPane<P>
de.placeblock.betterinventories.content.pane.impl.paginator.BasePaginatorControlsPane<P>
- All Implemented Interfaces:
Sizeable
- Direct Known Subclasses:
PaginatorControlsPane
public abstract class BasePaginatorControlsPane<P extends BasePaginatorControlsPane<P>>
extends BaseSimpleItemGUIPane<P>
The Controls pane for a
PaginatorGUIPane.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBasePaginatorControlsPane.AbstractBuilder<B extends BasePaginatorControlsPane.AbstractBuilder<B,P>, P extends BasePaginatorControlsPane<P>> Builder forBasePaginatorControlsPaneNested classes/interfaces inherited from class de.placeblock.betterinventories.content.pane.impl.simple.BaseSimpleGUIPane
BaseSimpleGUIPane.ChildData<C extends GUISection> -
Field Summary
FieldsFields inherited from class de.placeblock.betterinventories.content.pane.impl.simple.BaseSimpleGUIPane
contentFields inherited from class de.placeblock.betterinventories.content.GUISection
maxSize, minSize -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBasePaginatorControlsPane(GUI gui, PaginatorGUIPane paginatorGUIPane, Vector2d minSize, Vector2d maxSize, boolean autoSize, PaginatorControlsPosition position, NextPageGUIButton nextButton, PreviousPageGUIButton previousButton) Creates a new PaginatorControlsPane -
Method Summary
Modifier and TypeMethodDescriptionvoidIs called when the size of the Pane changes.voidupdateSize(Sizeable parent) Updates its size ifautoSizeis enabledMethods inherited from class de.placeblock.betterinventories.content.pane.impl.simple.BaseSimpleItemGUIPane
flipX, flipY, getItem, getItem, shiftX, shiftYMethods inherited from class de.placeblock.betterinventories.content.pane.impl.simple.BaseSimpleGUIPane
addItemEmptySlot, clear, fill, getChildren, getNextEmptySlot, getSections, onItemProvide, removeSection, removeSection, render, search, setSection, setSectionAt, setSectionAt, updateSizeRecursiveMethods inherited from class de.placeblock.betterinventories.content.pane.GUIPane
onItemAdd, onItemAmount, onItemClick, onItemRemove, provideItem, renderOnList, setHeight, setSize, setWidth, updateChildrenRecursiveMethods inherited from class de.placeblock.betterinventories.content.GUISection
getEmptyContentList, getHeight, getSlots, getWidth, slotToVector, vectorToSlotMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.placeblock.betterinventories.Sizeable
clampSize, getMaxSize, getMinSize, getSize
-
Field Details
-
FILL_ITEM
The default fill-item for the Pane
-
-
Constructor Details
-
BasePaginatorControlsPane
protected BasePaginatorControlsPane(GUI gui, PaginatorGUIPane paginatorGUIPane, Vector2d minSize, Vector2d maxSize, boolean autoSize, PaginatorControlsPosition position, NextPageGUIButton nextButton, PreviousPageGUIButton previousButton) Creates a new PaginatorControlsPane- Parameters:
gui- The GUIpaginatorGUIPane- The according PaginatorminSize- The minimum size of the PanemaxSize- The maximum size of the PaneautoSize- Whether the Pane should synchronize its width with the Paginator.position- The position where the Buttons should get renderednextButton- The custom next-buttonpreviousButton- The custom previous-button
-
-
Method Details
-
updateSize
Updates its size ifautoSizeis enabled- Overrides:
updateSizein classBaseSimpleGUIPane<GUIItem,P extends BasePaginatorControlsPane<P>> - 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:
onSizeChangein classGUIPane
-