Class PaginatorGUIPane.Builder
java.lang.Object
de.placeblock.betterinventories.Builder<B,P>
de.placeblock.betterinventories.content.GUISection.Builder<B,P>
de.placeblock.betterinventories.content.pane.GUIPane.Builder<B,P>
de.placeblock.betterinventories.content.pane.impl.BaseHorizontalSplitGUIPane.Builder<PaginatorGUIPane.Builder,PaginatorGUIPane>
de.placeblock.betterinventories.content.pane.impl.paginator.PaginatorGUIPane.Builder
- All Implemented Interfaces:
ItemAddable<PaginatorGUIPane.Builder>
- Enclosing class:
- PaginatorGUIPane
public static class PaginatorGUIPane.Builder
extends BaseHorizontalSplitGUIPane.Builder<PaginatorGUIPane.Builder,PaginatorGUIPane>
implements ItemAddable<PaginatorGUIPane.Builder>
Builder for creating
PaginatorGUIPane-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the instancecontrols(PaginatorControlsPosition position) Sets the controls attribute.controls(Function<PaginatorGUIPane, PaginatorControlsPane> controls) Sets the controls attribute.getItems()Has to return all Items currently addedrepeat(boolean repeat) Sets the repeat attributeprotected PaginatorGUIPane.Builderself()Returns the Builder instance itselfstartPage(int startPage) Sets the startPage attributeMethods inherited from class de.placeblock.betterinventories.content.pane.impl.BaseHorizontalSplitGUIPane.Builder
lowerPane, upperPaneMethods inherited from class de.placeblock.betterinventories.content.GUISection.Builder
adoptMinMax, getMaxSize, getMinSize, maxSize, maxSize, minSize, minSize, size, size
-
Constructor Details
-
Builder
Creates a new Builder- Parameters:
gui- The GUI this Pane belongs to
-
-
Method Details
-
repeat
Sets the repeat attribute- Parameters:
repeat- Wheter to jump to the beginning if at the end and vice versa- Returns:
- Itself
-
startPage
Sets the startPage attribute- Parameters:
startPage- The first page to start with- Returns:
- Itself
-
controls
Sets the controls attribute. You can use either this orcontrols(Function)- Parameters:
position- The position of the controls- Returns:
- Itself
-
controls
Sets the controls attribute. You can use either this orcontrols(PaginatorControlsPosition)- Parameters:
controls- The new controls- Returns:
- Itself
-
build
Description copied from class:BuilderBuilds the instance- Specified by:
buildin classBuilder<PaginatorGUIPane.Builder,PaginatorGUIPane> - Returns:
- The new instance
-
self
Description copied from class:BuilderReturns the Builder instance itself- Specified by:
selfin classBuilder<PaginatorGUIPane.Builder,PaginatorGUIPane> - Returns:
- the Builder instance itself
-
getItems
Description copied from interface:ItemAddableHas to return all Items currently added- Specified by:
getItemsin interfaceItemAddable<PaginatorGUIPane.Builder>- Returns:
- All added Items
-