Package space.maxus.flare.ui.frames
Class ParamPaginatedFrame<P>
java.lang.Object
space.maxus.flare.ui.Frame
space.maxus.flare.ui.frames.ParamPaginatedFrame<P>
- Type Parameters:
P- The type of props to use.
- All Implemented Interfaces:
ReactivityProvider,PaginationProxy
ParamPaginatedFrame is a simple frame that supports pagination and takes in props.
Composition inside the
Frame.init() method will not have effect. Use PaginationProxy.createPage(java.util.function.Consumer<space.maxus.flare.ui.page.PageFrame>) instead.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Dimensionsprotected final @NotNull ReactiveInventoryHolderprotected final @NotNull Pagination<Consumer<PageFrame>>protected final P -
Constructor Summary
ConstructorsConstructorDescriptionParamPaginatedFrame(P props) ParamPaginatedFrame(P props, @NotNull Dimensions dimensions) -
Method Summary
Modifier and TypeMethodDescriptionGets the dimensions of this frame's inventory@NotNull Pagination<Consumer<PageFrame>>Gets the pagination of this structurevoid@NotNull org.bukkit.inventory.InventoryGets the inventory of this frame.voidsetDimensions(Dimensions dimensions) Methods inherited from class space.maxus.flare.ui.Frame
bindViewer, close, composableMap, compose, compose, composeAll, context, contextOrNull, drag, fireDrag, fireGenericClick, fireLeftClick, fireRightClick, fireShiftClick, fireShiftRequest, genericClick, getHolder, getTitle, getViewer, goBack, init, leftClick, markDirty, markDirty, markDirty, onClose, onOpen, open, refreshTitle, render, renderPart, restorePreviousState, rightClick, setHolder, setTitle, shiftClick, shiftRequest, switchFrame, useBoundState, useContext, useStateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface space.maxus.flare.ui.page.PaginationProxy
createPage, createPage, nextPage, previousPage, switchPage, usePaginationDisplay, usePaginationDisplay, useTabulation, useTabulationMethods inherited from interface space.maxus.flare.react.ReactivityProvider
useMemo, useUnboundState
-
Field Details
-
holder
-
pagination
-
props
-
dimensions
-
-
Constructor Details
-
ParamPaginatedFrame
-
ParamPaginatedFrame
-
-
Method Details
-
preInit
-
selfInventory
@NotNull public @NotNull org.bukkit.inventory.Inventory selfInventory()Description copied from class:FrameGets the inventory of this frame.- Specified by:
selfInventoryin classFrame- Returns:
- the inventory of this frame.
-
getPagination
Description copied from interface:PaginationProxyGets the pagination of this structure- Specified by:
getPaginationin interfacePaginationProxy- Returns:
- Pagination suitable for
PageFramecreation
-
getDimensions
Description copied from class:FrameGets the dimensions of this frame's inventory- Specified by:
getDimensionsin classFrame- Returns:
- the dimensions of this frame's inventory
-
setDimensions
-