Class PaginatorControlsPane
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<PaginatorControlsPane>
de.placeblock.betterinventories.content.pane.impl.paginator.PaginatorControlsPane
- All Implemented Interfaces:
Sizeable
The Controls pane for a
PaginatorGUIPane.-
Nested Class Summary
Nested ClassesNested 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
ConstructorsConstructorDescriptionPaginatorControlsPane(GUI gui, PaginatorGUIPane paginatorGUIPane, Vector2d minSize, Vector2d maxSize, boolean autoSize, PaginatorControlsPosition position, NextPageGUIButton nextButton, PreviousPageGUIButton previousButton) Deprecated, for removal: This API element is subject to removal in a future version. -
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
-
PaginatorControlsPane
@Deprecated(forRemoval=true) public PaginatorControlsPane(GUI gui, PaginatorGUIPane paginatorGUIPane, Vector2d minSize, Vector2d maxSize, boolean autoSize, PaginatorControlsPosition position, NextPageGUIButton nextButton, PreviousPageGUIButton previousButton) Deprecated, for removal: This API element is subject to removal in a future version.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,PaginatorControlsPane> - 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
-