Class PivotTableExtensionImpl
java.lang.Object
io.jmix.pivottable.component.impl.PivotTableExtensionImpl
- All Implemented Interfaces:
PivotTableExtension
-
Field Summary
Modifier and TypeFieldDescriptionprotected PivotExcelExporter
protected String
protected PivotTable
protected JmixPivotTableExtension
-
Constructor Summary
-
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
setDateParseFormat
(String dateParseFormat) Sets date format that will be used to finding dateTime value and exporting it to excel with date type.void
setDateTimeParseFormat
(String dateTimeParseFormat) Sets dateTime format that will be used to finding dateTime value and exporting it to excel with dateTime type.void
setExportFormat
(PivotExcelExporter.ExportFormat exportFormat) Sets export formatXLS
orXLSX
.void
setFileName
(String fileName) Sets the file name.void
setTimeParseFormat
(String timeParseFormat) Sets date format that will be used to finding dateTime value and exporting it to excel with date type.protected void
-
Field Details
-
supportedRenderers
-
pivotTableExtension
-
fileName
-
excelExporter
-
pivotTable
-
-
Constructor Details
-
PivotTableExtensionImpl
-
-
Method Details
-
exportTableToXls
public void exportTableToXls()Description copied from interface:PivotTableExtension
Exports PivotTable to Xls file.- Specified by:
exportTableToXls
in interfacePivotTableExtension
-
exportTableToXls
Description copied from interface:PivotTableExtension
Exports PivotTable to Xls file.- Specified by:
exportTableToXls
in interfacePivotTableExtension
- Parameters:
downloader
- downloader to save file
-
setFileName
Description copied from interface:PivotTableExtension
Sets the file name.- Specified by:
setFileName
in interfacePivotTableExtension
- Parameters:
fileName
- file name
-
getFileName
- Specified by:
getFileName
in interfacePivotTableExtension
- Returns:
- file name
-
getPivotDataJSON
- Specified by:
getPivotDataJSON
in interfacePivotTableExtension
- Returns:
- JSON string which represents PivotTable with aggregated data
-
getPivotData
- Specified by:
getPivotData
in interfacePivotTableExtension
- Returns:
- serialized object from JSON which represents PivotTable with aggregated data
-
getDateTimeParseFormat
- Specified by:
getDateTimeParseFormat
in interfacePivotTableExtension
- Returns:
- dateTime format or null
-
setDateTimeParseFormat
Description copied from interface:PivotTableExtension
Sets dateTime format that will be used to finding dateTime value and exporting it to excel with dateTime type.- Specified by:
setDateTimeParseFormat
in interfacePivotTableExtension
- Parameters:
dateTimeParseFormat
- dateTime format (e.g. dd/MM/yyyy HH:mm)
-
getDateParseFormat
- Specified by:
getDateParseFormat
in interfacePivotTableExtension
- Returns:
- date format or null
-
setDateParseFormat
Description copied from interface:PivotTableExtension
Sets date format that will be used to finding dateTime value and exporting it to excel with date type. If there is no format set, date properties will be recognized as text value.- Specified by:
setDateParseFormat
in interfacePivotTableExtension
- Parameters:
dateParseFormat
- date format (e.g. dd/MM/yyyy)
-
getTimeParseFormat
- Specified by:
getTimeParseFormat
in interfacePivotTableExtension
- Returns:
- time format or null
-
setTimeParseFormat
Description copied from interface:PivotTableExtension
Sets date format that will be used to finding dateTime value and exporting it to excel with date type. If there is no format set, time properties will be recognized as text value.- Specified by:
setTimeParseFormat
in interfacePivotTableExtension
- Parameters:
timeParseFormat
- time format (e.g. HH:mm)
-
isRendererSupported
Description copied from interface:PivotTableExtension
Checks whether renderer is supported by the exporter.- Specified by:
isRendererSupported
in interfacePivotTableExtension
- Parameters:
renderer
- renderer to check- Returns:
true
if renderer is supported by the exporter
-
getExportFormat
- Specified by:
getExportFormat
in interfacePivotTableExtension
- Returns:
- export format
XLS
orXLSX
-
setExportFormat
Description copied from interface:PivotTableExtension
Sets export formatXLS
orXLSX
. The default value isXLSX
.- Specified by:
setExportFormat
in interfacePivotTableExtension
- Parameters:
exportFormat
- format that should have exported file
-
setupParseFormats
protected void setupParseFormats() -
checkSupportedRenderer
protected void checkSupportedRenderer() -
checkRenderer
-