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

public abstract class ParamPaginatedFrame<P> extends Frame implements 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 Details

  • Constructor Details

    • ParamPaginatedFrame

      public ParamPaginatedFrame(@NotNull P props, @NotNull @NotNull Dimensions dimensions)
    • ParamPaginatedFrame

      public ParamPaginatedFrame(@NotNull P props)
  • Method Details

    • preInit

      public void preInit(P props)
    • selfInventory

      @NotNull public @NotNull org.bukkit.inventory.Inventory selfInventory()
      Description copied from class: Frame
      Gets the inventory of this frame.
      Specified by:
      selfInventory in class Frame
      Returns:
      the inventory of this frame.
    • getPagination

      @NotNull public @NotNull Pagination<Consumer<PageFrame>> getPagination()
      Description copied from interface: PaginationProxy
      Gets the pagination of this structure
      Specified by:
      getPagination in interface PaginationProxy
      Returns:
      Pagination suitable for PageFrame creation
    • getDimensions

      public Dimensions getDimensions()
      Description copied from class: Frame
      Gets the dimensions of this frame's inventory
      Specified by:
      getDimensions in class Frame
      Returns:
      the dimensions of this frame's inventory
    • setDimensions

      public void setDimensions(Dimensions dimensions)