Class PaginatorBuilder
java.lang.Object
de.placeblock.betterinventories.builder.content.BaseGUISectionBuilder<G,B>
de.placeblock.betterinventories.builder.content.BaseGUIPaneBuilder<PaginatorGUIPane,PaginatorBuilder>
de.placeblock.betterinventories.builder.content.PaginatorBuilder
- All Implemented Interfaces:
Builder<PaginatorGUIPane,,PaginatorBuilder> ItemAddable<PaginatorBuilder>
public class PaginatorBuilder
extends BaseGUIPaneBuilder<PaginatorGUIPane,PaginatorBuilder>
implements ItemAddable<PaginatorBuilder>
Builder for creating PaginatorBuilders
-
Field Summary
Fields inherited from interface de.placeblock.betterinventories.builder.Builder
VALUE_MISSING_EXCEPTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the PaginatordefaultControls(PaginatorControlsPosition position) Sets the default-controlsprotected booleanrepeat(boolean repeat) Sets whether to jump back to the first page when reaching the last page (and via versa)startPage(int index) Sets the start pageMethods inherited from class de.placeblock.betterinventories.builder.content.BaseGUIPaneBuilder
adoptMinMax, getBestMaxSize, getBestMinSize, maxSize, maxSize, minSize, minSizeMethods inherited from class de.placeblock.betterinventories.builder.content.BaseGUISectionBuilder
getGui, getSize, sizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
PaginatorBuilder
Creates a new PaginatorBuilder- Parameters:
gui- The GUI for the Paginator
-
-
Method Details
-
repeat
Sets whether to jump back to the first page when reaching the last page (and via versa)- Parameters:
repeat- Do repeat- Returns:
- this
-
startPage
Sets the start page- Parameters:
index- The index of the start page- Returns:
- this
-
defaultControls
Sets the default-controls- Parameters:
position- The position of the default-controls- Returns:
- this
-
getRepeat
protected boolean getRepeat()- Returns:
- Whether repeat is enabled
-
build
Builds the Paginator- Specified by:
buildin interfaceBuilder<PaginatorGUIPane,PaginatorBuilder> - Returns:
- The new Paginator
-