Package io.jmix.pivottableflowui.export
Class PivotTableExporterImpl
java.lang.Object
io.jmix.pivottableflowui.export.PivotTableExporterImpl
- All Implemented Interfaces:
PivotTableExporter
@Component("pvttbl_PivotTableExporter")
@Scope("prototype")
public class PivotTableExporterImpl
extends Object
implements PivotTableExporter
Prepare the data
PivotData
requested from PivotTable
, then export to an XLS file.-
Field Summary
Modifier and TypeFieldDescriptionprotected PivotTableExcelExporter
protected String
protected PivotTable<?>
-
Constructor Summary
ConstructorDescriptionPivotTableExporterImpl
(PivotTable<?> pivotTable, PivotTableExcelExporter exporter) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkRenderer
(Renderer renderer) protected void
void
Exports PivotTable to Xls file.void
exportTableToXls
(Downloader downloader) Exports PivotTable to Xls file.boolean
isRendererSupported
(Renderer renderer) Checks whether renderer is supported by the exporter.void
setExportFormat
(PivotTableExcelExporter.ExportFormat exportFormat) Sets export formatXLS
orXLSX
.void
setFileName
(String fileName) Sets the file name.
-
Field Details
-
supportedRenderers
-
excelExporter
-
pivotTable
-
fileName
-
-
Constructor Details
-
PivotTableExporterImpl
-
-
Method Details
-
exportTableToXls
public void exportTableToXls()Description copied from interface:PivotTableExporter
Exports PivotTable to Xls file.- Specified by:
exportTableToXls
in interfacePivotTableExporter
-
exportTableToXls
Description copied from interface:PivotTableExporter
Exports PivotTable to Xls file.- Specified by:
exportTableToXls
in interfacePivotTableExporter
- Parameters:
downloader
- downloader to save file
-
setFileName
Description copied from interface:PivotTableExporter
Sets the file name.- Specified by:
setFileName
in interfacePivotTableExporter
- Parameters:
fileName
- file name
-
getFileName
- Specified by:
getFileName
in interfacePivotTableExporter
- Returns:
- file name
-
getPivotData
- Specified by:
getPivotData
in interfacePivotTableExporter
- Returns:
- serialized object from JSON which represents PivotTable with aggregated data
-
isRendererSupported
Description copied from interface:PivotTableExporter
Checks whether renderer is supported by the exporter.- Specified by:
isRendererSupported
in interfacePivotTableExporter
- Parameters:
renderer
- renderer to check- Returns:
true
if renderer is supported by the exporter
-
getExportFormat
- Specified by:
getExportFormat
in interfacePivotTableExporter
- Returns:
- export format
XLS
orXLSX
-
setExportFormat
Description copied from interface:PivotTableExporter
Sets export formatXLS
orXLSX
. The default value isXLSX
.- Specified by:
setExportFormat
in interfacePivotTableExporter
- Parameters:
exportFormat
- format that should have exported file
-
checkSupportedRenderer
protected void checkSupportedRenderer() -
checkRenderer
-