TableTraversalOrder Enum
Lists the possible orders for traversing table cells.
Declaration
public enum TableTraversalOrder extends Enum<TableTraversalOrder> implements IIntEnum
Members
| Name | Description |
|---|---|
COLUMN_THEN_ROW
|
Specifies that table cells are traversed column by column. |
ROW_THEN_COLUMN
|
Specifies that table cells are traversed row by row. |
fromValue(int value)
|
Returns the |
getName()
|
Returns the name of the |
getValue()
|
Returns the integer value associated with the |
toString()
|
Returns the string representation of the |
valueOf(String name)
|
Returns the |
values()
|
Returns an array of all |
Remarks
Tables with merged cells may contain inactive (non-visible) cells. Use the Table.getActiveCells(TableTraversalOrder order) method to obtain active cells.
// Iterate through active cells in the table.
Iterable<TableCell> cells =
table.getActiveCells(TableTraversalOrder.ROW_THEN_COLUMN);
Tip
If you traverse cells manually, use TableCell.getIsMergedVertically() and TableCell.getIsMergedHorizontally() methods to identify whether the cell is active/inactive.
Refer to the following help topic for additional information: Iterate Active Cells.