T - typepublic abstract class DataSaverExcelBase<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.poi.ss.usermodel.ClientAnchor |
anchor |
protected org.apache.poi.ss.usermodel.CreationHelper |
creationHelper |
protected org.apache.poi.ss.usermodel.Drawing |
drawing |
protected DSHeader |
header |
protected org.apache.poi.ss.usermodel.Sheet |
sheet |
| Constructor and Description |
|---|
DataSaverExcelBase() |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
save()
Saves the stored data objects to spreadsheet.
|
protected abstract void |
save(T object)
Saves the object by calling setValue(...) and setCommand(...) methods.
|
protected void |
setCommand(DSCommand command)
Writes the command string in the spreadsheet at the current row.
|
void |
setCommand(int rowIndex,
DSCommand command)
Writes the command string in the spreadsheet at the specified row.
|
void |
setValue(int rowIndex,
Object columnName,
Object value)
Stores the value in the spreadsheet at the specified row and the specified column.
|
protected org.apache.poi.ss.usermodel.Sheet sheet
protected DSHeader header
protected org.apache.poi.ss.usermodel.Drawing drawing
protected org.apache.poi.ss.usermodel.CreationHelper creationHelper
protected org.apache.poi.ss.usermodel.ClientAnchor anchor
public InputStream save()
public void setCommand(int rowIndex,
DSCommand command)
save() method performs all the required command writing, this method is public only for the purpose
of tests.rowIndex - the row index, 0 for the first objectcommand - the command to write; if DSCommand.NONE or DSCommand.OPERATION, nothing is writtenprotected abstract void save(T object)
object - the object to be savedprotected void setCommand(DSCommand command)
command - the command to write; if DSCommand.NONE, nothing is writtenpublic void setValue(int rowIndex,
Object columnName,
Object value)
save() method performs all the required storing, this method is public only for the purpose of
tests.rowIndex - the row index, 0 for the first objectcolumnName - the column namevalue - the value to storeCopyright © 2025 European Spallation Source. All rights reserved.