public class OdsFileHelper extends Object
| Constructor and Description |
|---|
OdsFileHelper(NamedOdsDocument odsDocument,
TableHelper tableHelper,
PositionUtil positionUtil)
Create the helper.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setCellMergeInAllTables(int rowIndex,
int colIndex,
int rowMerge,
int columnMerge)
Set the merging of multiple cells to one cell.
|
void |
setCellMergeInAllTables(String address,
int rowMerge,
int columnMerge)
Set the merging of multiple cells to one cell in all existing tables.
|
void |
setCellValueInAllTables(int rowIndex,
int colIndex,
CellValue value,
TableCellStyle ts)
Sets the cell value in all tables to the date from the Calendar object.
|
void |
setCellValueInAllTables(String address,
CellValue value,
TableCellStyle ts)
Sets the cell value in all tables to the date from the Calendar object.
|
public OdsFileHelper(NamedOdsDocument odsDocument, TableHelper tableHelper, PositionUtil positionUtil)
odsDocument - the documenttableHelper - a sub helperpositionUtil - an utilpublic void setCellMergeInAllTables(int rowIndex,
int colIndex,
int rowMerge,
int columnMerge)
throws IOException
rowIndex - The row, 0 is the first rowcolIndex - The column, 0 is the first columnrowMerge - the number of rows to mergecolumnMerge - the number of columns to mergeIOException - if the cells can't be mergedpublic void setCellMergeInAllTables(String address, int rowMerge, int columnMerge) throws IOException, ParseException
address - The cell position e.g. 'A1'rowMerge - the number of rows to mergecolumnMerge - the number of columns to mergeIOException - if the cells can't be mergedParseException - if the address can't be parsedpublic void setCellValueInAllTables(int rowIndex,
int colIndex,
CellValue value,
TableCellStyle ts)
throws IOException
rowIndex - The row, 0 is the first rowcolIndex - The column, 0 is the first columnvalue - The cell valuets - The table style for this cellIOException - if the cells can't be mergedpublic void setCellValueInAllTables(String address, CellValue value, TableCellStyle ts) throws IOException, ParseException
address - The cell position e.g. 'A1'value - The cell valuets - The table style for this cellsIOException - if the cells can't be mergedParseException - if the address can't be parsedCopyright © 2016–2021. All rights reserved.