Interface AuthorTableAccess
@API(type=NOT_EXTENDABLE,
src=PUBLIC)
public interface AuthorTableAccess
Provides methods for table actions and informations regarding the table content.
-
Method Summary
Modifier and TypeMethodDescriptiongetTableCellAbove
(AuthorElement cellElement) Find the cell included into the previous row and has the same column index as the specified cellAuthorElement
.getTableCellAt
(int row, int column, AuthorElement tableElement) Obtain the cellAuthorElement
for the given row and column in the specified table.getTableCellBelow
(AuthorElement cellElement) Find the cell included into the next row and has the same column index as the specified cellAuthorElement
.int[]
getTableCellIndex
(AuthorElement cellElement) Obtain the table row and column index for the cell corresponding to the specified cellAuthorElement
.int[]
getTableColSpanIndices
(AuthorElement cellElement) For the given cellAuthorElement
find the start and end column defining the column span interval.int
getTableNumberOfColumns
(AuthorElement tableElement) Returns the number of columns for the given tableAuthorElement
.getTableRow
(int index, AuthorElement tableElement) Find the table row element for the given index.int
getTableRowCount
(AuthorElement tableElement) Get the row count for the given tableAuthorElement
.int[]
getTableRowSpanIndices
(AuthorElement cellElement) For the given cellAuthorElement
find the start and end row defining the row span interval.
-
Method Details
-
getTableCellAbove
Find the cell included into the previous row and has the same column index as the specified cellAuthorElement
.- Parameters:
cellElement
- The table cell element.- Returns:
- The cell above the given one.
Can be
null
if there is no cell above the given one or the element does not correspond to a table cell..
-
getTableCellBelow
Find the cell included into the next row and has the same column index as the specified cellAuthorElement
.- Parameters:
cellElement
- The table cell element.- Returns:
- The cell bellow the given one.
Can be
null
if there is no cell bellow the given one or the element does not correspond to a table cell..
-
getTableCellIndex
Obtain the table row and column index for the cell corresponding to the specified cellAuthorElement
.- Parameters:
cellElement
- The table cell element.- Returns:
- an array containing the row index on the first position and column
index on second one. Both are 0 based.
Can be
null
if the element does not correspond to a cell in a table.
-
getTableCellAt
Obtain the cellAuthorElement
for the given row and column in the specified table.- Parameters:
row
- The row, 0 based.column
- The column, 0 based.tableElement
- The table element.- Returns:
- The element at the specified location.
Can be
null
if the table does not have a cell at the provided indices.
-
getTableRow
Find the table row element for the given index.- Parameters:
index
- The index of the row to find the element for, 0 based.tableElement
- The table element.- Returns:
- The table row.
Can be
null
if the table does not have a row at the given index.
-
getTableRowCount
Get the row count for the given tableAuthorElement
.- Parameters:
tableElement
- The table element.- Returns:
- The row count.
-
getTableNumberOfColumns
Returns the number of columns for the given tableAuthorElement
.- Parameters:
tableElement
- The table element.- Returns:
- The number of columns.
-
getTableColSpanIndices
For the given cellAuthorElement
find the start and end column defining the column span interval. The indices are 0 based.- Parameters:
cellElement
- The table cell element.- Returns:
- An array containing the start span column index on the first position and
the end span column index on the second one.
Can be
null
if the element does not correspond to a cell in a table.
-
getTableRowSpanIndices
For the given cellAuthorElement
find the start and end row defining the row span interval. The indices are 0 based.- Parameters:
cellElement
- The table cell element.- Returns:
- An array containing the start span row index on the first position and
the end span row index on the second one.
Can be
null
if the element does not correspond to a cell in a table. - Since:
- 13
-