Package tech.guilhermekaua.spigotboot.inventoryapi.internal.pagination
package tech.guilhermekaua.spigotboot.inventoryapi.internal.pagination
-
ClassDescriptionPer-(session, token) pagination runtime: records pre-init navigation, builds the per-context page source and geometry engine at open time, owns the page-element components of the current frame and implements the
PaginationHostseam the relocated engine paints and settles through.Static lookup helpers over a session's pagination bindings.PaginationBuilderimplementation behindView.paginate*: collects the declaration fluently (value errors rejected at setter time), validates the combination atPaginationBuilderImpl.build(), resolves geometry and target, and constructs the registeredPaginationImpltoken.The world-facing seam the relocated pagination engine talks to instead of the 2.xViewer/InventoryEditorpair.ThePaginationtoken implementation: a per-view singleton declared at view construction time whose per-context runtime lives in aPaginationBindingstored in this token's ownStateStoreslot.Immutable source declaration of one pagination token: which of the four source kinds the view declared, and how to construct thePageSourcefor one context.The four ways a view can declare where page elements come from.Immutable pagination declaration built byPaginationBuilderImpl.build(): geometry, paint target, renderer and frame items, the source declaration, and the async plumbing consumed byPaginationSourceSpec.createSource(ViewContext, PaginationSpec, tech.guilhermekaua.spigotboot.core.spigot.scheduler.PlatformScheduler).How elements are distributed across pages.Where the page items are painted.One slot's worth of pagination engine output: a user-declared element builder, a plain frame item (anullitem clears the slot), or the failure sentinel that keeps the slot's previous content entirely.