Interface AuthorTableAccess
-
@API(type=NOT_EXTENDABLE, src=PUBLIC) public interface AuthorTableAccess
Provides methods for table actions and informations regarding the table content.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AuthorElement
getTableCellAbove(AuthorElement cellElement)
Find the cell included into the previous row and has the same column index as the specified cellAuthorElement
.AuthorElement
getTableCellAt(int row, int column, AuthorElement tableElement)
Obtain the cellAuthorElement
for the given row and column in the specified table.AuthorElement
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
.AuthorElement
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 Detail
-
getTableCellAbove
AuthorElement getTableCellAbove(AuthorElement cellElement)
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
AuthorElement getTableCellBelow(AuthorElement cellElement)
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
int[] getTableCellIndex(AuthorElement cellElement)
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
AuthorElement getTableCellAt(int row, int column, AuthorElement tableElement)
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
AuthorElement getTableRow(int index, AuthorElement tableElement)
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
int getTableRowCount(AuthorElement tableElement)
Get the row count for the given tableAuthorElement
.- Parameters:
tableElement
- The table element.- Returns:
- The row count.
-
getTableNumberOfColumns
int getTableNumberOfColumns(AuthorElement tableElement)
Returns the number of columns for the given tableAuthorElement
.- Parameters:
tableElement
- The table element.- Returns:
- The number of columns.
-
getTableColSpanIndices
int[] getTableColSpanIndices(AuthorElement cellElement)
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
int[] getTableRowSpanIndices(AuthorElement cellElement)
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
-
-