Class PaginationBindings
java.lang.Object
tech.guilhermekaua.spigotboot.inventoryapi.internal.pagination.PaginationBindings
Static lookup helpers over a session's pagination bindings. Bindings live in the owning
token's
StateStore slot (created by the open phase), so lookups walk the view's
token table and read each pagination token's slot.-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable ComponentInstancecomponentAt(@NotNull ViewSession session, int slot) Looks up the pagination element component currently occupying a slot.static @NotNull List<PaginationBinding>of(@NotNull ViewSession session) Returns the pagination bindings of a session in token-declaration order.
-
Method Details
-
of
Returns the pagination bindings of a session in token-declaration order.- Parameters:
session- the session to inspect- Returns:
- the bindings created for the session; empty when the view declares no pagination tokens or the open phase has not seeded them yet
-
componentAt
@Nullable public static @Nullable ComponentInstance componentAt(@NotNull @NotNull ViewSession session, int slot) Looks up the pagination element component currently occupying a slot.- Parameters:
session- the session to inspectslot- the container slot- Returns:
- the element component at the slot, or
nullwhen no binding owns it
-