Interface PageLayout<C,X extends AbstractPageContext<C,?,?>>
- Type Parameters:
C- the title component type —Componenton Paper,Stringon SpigotX- the page context type supplied to layout hooks
public interface PageLayout<C,X extends AbstractPageContext<C,?,?>>
Defines the shared layout for all pages in a pagination.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <C,X extends AbstractPageContext<C, ?, ?>>
@NotNull PageLayoutBuilder<C, X> Creates a generic builder for the given capacity.@NotNull Capacitycapacity()Returns the page capacity.default @NotNull Contentdecorations(X context) Returns the static decorations for the current page.@NotNull SlotMaskfillMask()Returns the slots used for page items.@NotNull ButtonnextButton(X context) Returns the next-page button.@NotNull SlotReturns the slot used by the next-page button.@NotNull ButtonpreviousButton(X context) Returns the previous-page button.@NotNull SlotReturns the slot used by the previous-page button.Returns the title for the current page.
-
Method Details
-
capacity
Returns the page capacity. -
title
Returns the title for the current page. -
fillMask
Returns the slots used for page items. -
previousButtonSlot
Returns the slot used by the previous-page button. -
nextButtonSlot
Returns the slot used by the next-page button. -
previousButton
Returns the previous-page button. -
nextButton
Returns the next-page button. -
decorations
Returns the static decorations for the current page. -
builder
@NotNull static <C,X extends AbstractPageContext<C, @NotNull PageLayoutBuilder<C,?, ?>> X> builder(@NotNull @NotNull Capacity capacity) Creates a generic builder for the given capacity.
-