Package space.maxus.flare.ui.frames
Class ParamFrame<P>
java.lang.Object
space.maxus.flare.ui.Frame
space.maxus.flare.ui.frames.ParamFrame<P>
- Type Parameters:
P- Type of frame props.
- All Implemented Interfaces:
ReactivityProvider
- Direct Known Subclasses:
PageFrame
A simple frame that can take in extra props.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final @NotNull Dimensionsprotected @NotNull ReactiveInventoryHolderprotected final P -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedParamFrame(P params) ParamFrame(P params, @NotNull Dimensions dimensions) -
Method Summary
Modifier and TypeMethodDescription@NotNull DimensionsGets the dimensions of this frame's inventory@NotNull ReactiveInventoryHolderGets the Flare InventoryHolder for this frameabstract voidinit()Called once inside the constructorvoid@NotNull org.bukkit.inventory.InventoryGets the inventory of this frame.voidsetHolder(@NotNull ReactiveInventoryHolder holder) Sets the holder for this frame This is an internal method, it is only used for frame-switchingMethods inherited from class space.maxus.flare.ui.Frame
bindViewer, close, composableMap, compose, compose, composeAll, context, contextOrNull, drag, fireDrag, fireGenericClick, fireLeftClick, fireRightClick, fireShiftClick, fireShiftRequest, genericClick, getTitle, getViewer, goBack, leftClick, markDirty, markDirty, markDirty, onClose, onOpen, open, refreshTitle, render, renderPart, restorePreviousState, rightClick, 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.react.ReactivityProvider
useMemo, useUnboundState
-
Field Details
-
dimensions
-
props
-
holder
-
-
Constructor Details
-
ParamFrame
-
ParamFrame
-
-
Method Details
-
preInit
-
init
public abstract void init()Description copied from class:FrameCalled once inside the constructor -
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.
-
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
-
getHolder
Description copied from class:FrameGets the Flare InventoryHolder for this frame -
setHolder
Description copied from class:FrameSets the holder for this frame This is an internal method, it is only used for frame-switching
-