Package com.storedobject.office
Class ODT.TableRow
java.lang.Object
com.storedobject.office.ODT.Element
com.storedobject.office.ODT.TableRow
Represents a single row within a table structure in the context of document processing.
- Author:
- Syam
-
Method Summary
Modifier and TypeMethodDescriptiongetCell(int index) Retrieves theTableCellat the specified index within thisTableRow.intRetrieves the total count of cells in the current row of the table.getData()Get the data associated with this row.intGet the variable-index of this table row within its parent table.booleanremove()Table-cell can't be removed.voidSet the data associated with this row.Methods inherited from class com.storedobject.office.ODT.Element
getCell, getDocument, getName, getParent, getParentCell, getParentRow, getParentSection, getParentTable
-
Method Details
-
getData
Get the data associated with this row.- Returns:
- Data associated with this row.
-
setData
Set the data associated with this row.- Parameters:
data- Data to be associated with this row.
-
getVariableIndex
public int getVariableIndex()Get the variable-index of this table row within its parent table.- Returns:
- Row index of this table row.
-
getCellCount
public int getCellCount()Retrieves the total count of cells in the current row of the table. Cell-count can be obtained only if the table has been added to the output.- Returns:
- The number of cells in the row.
-
getCell
Retrieves theTableCellat the specified index within thisTableRow. If the index is out of bounds, this method returnsnull.Note: A cell is available only if the table has been added to the output.
- Parameters:
index- The zero-based index of the cell to retrieve. Must be greater than or equal to 0 and less than the total number of cells in the row.- Returns:
- The
TableCelllocated at the specified index, ornullif the index is invalid.
-
remove
public boolean remove()Table-cell can't be removed.- Overrides:
removein classODT.Element- Returns:
- Always
false.
-