Class PaginatorContentPane
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<SimpleItemGUIPane>
de.placeblock.betterinventories.content.pane.impl.simple.SimpleItemGUIPane
de.placeblock.betterinventories.content.pane.impl.paginator.PaginatorContentPane
- All Implemented Interfaces:
Sizeable
The ContentPane of a
PaginatorGUIPane.
Internal use only.-
Nested Class Summary
Nested classes/interfaces inherited from class de.placeblock.betterinventories.content.pane.impl.simple.SimpleItemGUIPane
SimpleItemGUIPane.BuilderNested classes/interfaces inherited from class de.placeblock.betterinventories.content.pane.impl.simple.BaseSimpleItemGUIPane
BaseSimpleItemGUIPane.AbstractBuilder<B extends BaseSimpleItemGUIPane.AbstractBuilder<B,P>, P extends BaseSimpleItemGUIPane<P>> Nested classes/interfaces inherited from class de.placeblock.betterinventories.content.pane.impl.simple.BaseSimpleGUIPane
BaseSimpleGUIPane.ChildData<C extends GUISection> -
Field Summary
Fields inherited from class de.placeblock.betterinventories.content.pane.impl.simple.BaseSimpleGUIPane
autoSize, contentFields inherited from class de.placeblock.betterinventories.content.GUISection
maxSize, minSize -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPaginatorContentPane(GUI gui, Vector2d minSize, Vector2d maxSize, PaginatorGUIPane paginatorGUIPane) Creates a new PaginatorContentPane -
Method Summary
Modifier and TypeMethodDescriptionvoidIs called when the size of the Pane changes.voidsetItems()Sets the Items in the PaginatorvoidupdateSize(Sizeable parent) Updates the size of the pane based on the size of the paginator.Methods 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, onItemRemoveTroughInventoryClose, 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
-
Constructor Details
-
PaginatorContentPane
protected PaginatorContentPane(GUI gui, Vector2d minSize, Vector2d maxSize, PaginatorGUIPane paginatorGUIPane) Creates a new PaginatorContentPane- Parameters:
gui- The GUIminSize- The minimum size of the PanemaxSize- The maximum size of the PanepaginatorGUIPane- The according Paginator
-
-
Method Details
-
updateSize
Updates the size of the pane based on the size of the paginator.- Overrides:
updateSizein classBaseSimpleGUIPane<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:
onSizeChangein classGUIPane
-
setItems
public void setItems()Sets the Items in the Paginator
-