Package space.maxus.flare.ui.page
Interface PaginationProxy
- All Known Implementing Classes:
PaginatedFrame,ParamPaginatedFrame
public interface PaginationProxy
A proxy interface for better accessibility.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidcreatePage(String title, Consumer<PageFrame> configurator) Creates a page with the provided configurator function and titledefault voidcreatePage(Consumer<PageFrame> configurator) Creates a page with the provided configurator functionGets the pagination of this structuredefault voidnextPage(org.bukkit.entity.Player viewer) Switches to the next page for the viewerdefault voidpreviousPage(org.bukkit.entity.Player viewer) Switches to the previous page for the viewerdefault voidswitchPage(org.bukkit.entity.Player viewer, int to) Switches page for viewer to certain indexdefault voidConfigures aPaginationDisplayinside all page framesdefault voidusePaginationDisplay(ComposableSpace space, @NotNull Callable<PaginationDisplay> paginationDisplay) Configures aPaginationDisplayinside all page framesdefault voiduseTabulation(ComposableSpace space) Configures aTabulationinside all page framesdefault voiduseTabulation(ComposableSpace space, @NotNull Callable<Tabulation> tabulation) Configures aTabulationinside all page frames
-
Method Details
-
getPagination
Pagination<Consumer<PageFrame>> getPagination()Gets the pagination of this structure- Returns:
- Pagination suitable for
PageFramecreation
-
createPage
Creates a page with the provided configurator function- Parameters:
configurator- The configurator function
-
createPage
Creates a page with the provided configurator function and title- Parameters:
configurator- The configurator functiontitle- Title of the page
-
switchPage
default void switchPage(org.bukkit.entity.Player viewer, int to) Switches page for viewer to certain index- Parameters:
viewer- Viewer of this paginationto- Zero-based index of page to change to
-
nextPage
default void nextPage(org.bukkit.entity.Player viewer) Switches to the next page for the viewer- Parameters:
viewer- Viewer observing this pagination
-
previousPage
default void previousPage(org.bukkit.entity.Player viewer) Switches to the previous page for the viewer- Parameters:
viewer- Viewer observing this pagination
-
useTabulation
Configures aTabulationinside all page frames- Parameters:
space- Space reserved for the tabulation
-
useTabulation
default void useTabulation(ComposableSpace space, @NotNull @NotNull Callable<Tabulation> tabulation) Configures aTabulationinside all page frames- Parameters:
space- Space reserved for the tabulationtabulation- Producer of the tabulation
-
usePaginationDisplay
Configures aPaginationDisplayinside all page frames- Parameters:
space- Space reserved for the pagination display
-
usePaginationDisplay
default void usePaginationDisplay(ComposableSpace space, @NotNull @NotNull Callable<PaginationDisplay> paginationDisplay) Configures aPaginationDisplayinside all page frames- Parameters:
space- Space reserved for the pagination displaypaginationDisplay- Producer of the pagination display
-