public class ExcelExportTable extends Object implements ExportTable
| Constructor and Description |
|---|
ExcelExportTable(int startRow)
Constructs an Excel file exporter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDataRow(Object... data)
This method adds a new row of data to the table.
|
void |
addHeaderRow(String... titles)
Defines a header row.
|
void |
createTable(String title)
The method creates the table.
|
InputStream |
exportTable()
This method puts the data into a stream that can be saved/sent to the client.
|
public ExcelExportTable(int startRow)
startRow - the 0 based index of the row to start the export at.public void createTable(String title)
ExportTablecreateTable in interface ExportTabletitle - name of the table if supported by the implementationpublic void addHeaderRow(String... titles)
ExportTableaddHeaderRow in interface ExportTabletitles - a collection of strings to be used as column titlespublic void addDataRow(Object... data)
ExportTableaddDataRow in interface ExportTabledata - the datapublic InputStream exportTable()
ExportTableexportTable in interface ExportTableInputStream that can be used for download.Copyright © 2025 European Spallation Source. All rights reserved.