public static enum Pagination.Orientation extends java.lang.Enum<Pagination.Orientation>
| Enum Constant and Description |
|---|
ALTERNATING_COLUMNS
Iterates slot positions using an alternating column-major traversal.
|
ALTERNATING_ROWS
Iterates slot positions using an alternating row-major traversal.
|
HORIZONTAL
Row-major ordering.
|
TOP_BOTTOM_LEFT_RIGHT
Mixed column-major ordering.
|
VERTICAL
Column-major ordering.
|
| Modifier and Type | Method and Description |
|---|---|
static Pagination.Orientation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Pagination.Orientation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Pagination.Orientation VERTICAL
Slots are traversed from top to bottom within each column, and columns are processed from left to right.
This is used for vertical progression:
(r0,c0), (r1,c0), (r2,c0), ... (r0,c1), (r1,c1), (r2,c1), ...
public static final Pagination.Orientation HORIZONTAL
Slots are traversed from left to right within each row, and rows are processed from top to bottom.
This is the traditional horizontal progression:
(r0,c0), (r0,c1), (r0,c2), ... (r1,c0), (r1,c1), (r1,c2), ...
public static final Pagination.Orientation ALTERNATING_ROWS
first, last, second, penultimate, ...
Example for a 3×3 grid (row-major base order: 1–9):
order = 1, 9, 2, 8, 3, 7, 4, 6, 5
public static final Pagination.Orientation ALTERNATING_COLUMNS
ALTERNATING_ROWS
but operates on the column-major base order.
Example for a 3×3 grid (column-major base order: 1–6):
order = 1, 9, 4, 6, 7, 3, 2, 8, 5
public static final Pagination.Orientation TOP_BOTTOM_LEFT_RIGHT
Slots are traversed vertically (top to bottom, left to right), but processed sequence-by-sequence. A "sequence" is a contiguous group of valid slots in the layout.
This mode preserves logical grouping while following a vertical reading direction.
public static Pagination.Orientation[] values()
for (Pagination.Orientation c : Pagination.Orientation.values()) System.out.println(c);
public static Pagination.Orientation valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null