Class SimplePaginationLayout
java.lang.Object
com.kamikazejam.kamicommon.menu.api.struct.paginated.layout.SimplePaginationLayout
- All Implemented Interfaces:
PaginationLayout
Represents the simplest layout for a
This layout is defined by:
PaginatedMenu.This layout is defined by:
- A 1 block gap (border) at the top of the menu where no items are placed.
- A 1 block gap (border) at the left and right of the menu where no items are placed.
- The last row is reserved for the pagination controls.
- The second to last row is also a gap (border) row, such that the remaining rows in between are used for the page items.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull PaginationLayoutcopy()@NotNull IconSlotgetNextIconSlot(@NotNull MenuSize size) Get the slot that the next icon (if needed) will be placed into.
If this slot is invalid (outside the menu), the icon will not be placed.@NotNull IconSlotgetPrevIconSlot(@NotNull MenuSize size) Get the slot that the previous icon (if needed) will be placed into.
If this slot is invalid (outside the menu), the icon will not be placed.@NotNull Collection<Integer> Get the slots of the menu that are used for the pages.
-
Constructor Details
-
SimplePaginationLayout
public SimplePaginationLayout()
-
-
Method Details
-
copy
- Specified by:
copyin interfacePaginationLayout