Uses of Interface
tech.guilhermekaua.spigotboot.inventoryapi.pagination.source.PageSource
Packages that use PageSource
Package
Description
The spigot-boot inventory framework (3.0.0): view-based inventories with typed per-phase
contexts, reactive state, and declarative pagination.
-
Uses of PageSource in tech.guilhermekaua.spigotboot.inventoryapi
Method parameters in tech.guilhermekaua.spigotboot.inventoryapi with type arguments of type PageSourceModifier and TypeMethodDescriptionprotected final <T> PaginationBuilder<T>View.paginateSource(@NotNull Function<ViewContext, PageSource<T>> factory) Escape hatch declaring paginated rendering over a customPageSource: the factory runs once per context at pagination initialization and must return the source instance serving exactly that context. -
Uses of PageSource in tech.guilhermekaua.spigotboot.inventoryapi.internal.pagination
Methods in tech.guilhermekaua.spigotboot.inventoryapi.internal.pagination that return PageSourceModifier and TypeMethodDescription@NotNull PageSource<T>PaginationSourceSpec.createSource(@NotNull ViewContext context, @NotNull PaginationSpec<T> spec, @NotNull PlatformScheduler scheduler) Creates (or returns) thePageSourcefor one context.Method parameters in tech.guilhermekaua.spigotboot.inventoryapi.internal.pagination with type arguments of type PageSourceModifier and TypeMethodDescriptionstatic <T> @NotNull PaginationSourceSpec<T>PaginationSourceSpec.custom(@NotNull Function<ViewContext, PageSource<T>> factory) Declares a custom source: the factory runs once per context and its result is used as-is. -
Uses of PageSource in tech.guilhermekaua.spigotboot.inventoryapi.internal.pagination.engine
Fields in tech.guilhermekaua.spigotboot.inventoryapi.internal.pagination.engine declared as PageSourceModifier and TypeFieldDescriptionprotected PageSource<T>AbstractPageSourcePagination.pageSourceprotected PageSource<T>AbstractPageSourcePagination.pageSourceprotected PageSource<T>AbstractPageSourcePagination.pageSourceMethods in tech.guilhermekaua.spigotboot.inventoryapi.internal.pagination.engine with parameters of type PageSourceModifier and TypeMethodDescriptionvoidPaginator.replaceSource(@NotNull PageSource<T> source) Swaps the backing source and clears the locally held items.Constructors in tech.guilhermekaua.spigotboot.inventoryapi.internal.pagination.engine with parameters of type PageSourceModifierConstructorDescriptionNormalPagination(@Nullable Supplier<RenderedItem> fallbackItem, @NotNull PageItemFactory<T> itemFactory, @NotNull Layout layout, @Nullable Supplier<RenderedItem> loadingItem, @NotNull PageSource<T> pageSource) Creates a paginator over the given page source.PatternPagination(@Nullable Supplier<RenderedItem> fallbackItem, @NotNull PageItemFactory<T> itemFactory, @NotNull List<Layout> patterns, @Nullable Supplier<RenderedItem> loadingItem, @NotNull PageSource<T> pageSource) Creates a paginator over the given page source.ScrollPagination(@Nullable Supplier<RenderedItem> fallbackItem, @NotNull PageItemFactory<T> itemFactory, @NotNull Layout layout, @Nullable Supplier<RenderedItem> loadingItem, @NotNull PageSource<T> pageSource) Creates a paginator over the given page source. -
Uses of PageSource in tech.guilhermekaua.spigotboot.inventoryapi.pagination.source
Classes in tech.guilhermekaua.spigotboot.inventoryapi.pagination.source that implement PageSourceModifier and TypeClassDescriptionfinal classAsynchronousPageSourcebacked by anAsyncPageSupplier.final classIn-memoryPageSource: serves slices of a fixed list and settles every request synchronously on the calling thread.