Class PivotTableExtensionImpl
java.lang.Object
io.jmix.pivottable.component.impl.PivotTableExtensionImpl
- All Implemented Interfaces:
PivotTableExtension
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PivotExcelExporterprotected Stringprotected PivotTableprotected JmixPivotTableExtension -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckRenderer(Renderer renderer) protected voidvoidExports PivotTable to Xls file.voidexportTableToXls(Downloader downloader) Exports PivotTable to Xls file.booleanisRendererSupported(Renderer renderer) Checks whether renderer is supported by the exporter.voidsetDateParseFormat(String dateParseFormat) Sets date format that will be used to finding dateTime value and exporting it to excel with date type.voidsetDateTimeParseFormat(String dateTimeParseFormat) Sets dateTime format that will be used to finding dateTime value and exporting it to excel with dateTime type.voidsetExportFormat(PivotExcelExporter.ExportFormat exportFormat) Sets export formatXLSorXLSX.voidsetFileName(String fileName) Sets the file name.voidsetTimeParseFormat(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:PivotTableExtensionExports PivotTable to Xls file.- Specified by:
exportTableToXlsin interfacePivotTableExtension
-
exportTableToXls
Description copied from interface:PivotTableExtensionExports PivotTable to Xls file.- Specified by:
exportTableToXlsin interfacePivotTableExtension- Parameters:
downloader- downloader to save file
-
setFileName
Description copied from interface:PivotTableExtensionSets the file name.- Specified by:
setFileNamein interfacePivotTableExtension- Parameters:
fileName- file name
-
getFileName
- Specified by:
getFileNamein interfacePivotTableExtension- Returns:
- file name
-
getPivotDataJSON
- Specified by:
getPivotDataJSONin interfacePivotTableExtension- Returns:
- JSON string which represents PivotTable with aggregated data
-
getPivotData
- Specified by:
getPivotDatain interfacePivotTableExtension- Returns:
- serialized object from JSON which represents PivotTable with aggregated data
-
getDateTimeParseFormat
- Specified by:
getDateTimeParseFormatin interfacePivotTableExtension- Returns:
- dateTime format or null
-
setDateTimeParseFormat
Description copied from interface:PivotTableExtensionSets dateTime format that will be used to finding dateTime value and exporting it to excel with dateTime type.- Specified by:
setDateTimeParseFormatin interfacePivotTableExtension- Parameters:
dateTimeParseFormat- dateTime format (e.g. dd/MM/yyyy HH:mm)
-
getDateParseFormat
- Specified by:
getDateParseFormatin interfacePivotTableExtension- Returns:
- date format or null
-
setDateParseFormat
Description copied from interface:PivotTableExtensionSets 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:
setDateParseFormatin interfacePivotTableExtension- Parameters:
dateParseFormat- date format (e.g. dd/MM/yyyy)
-
getTimeParseFormat
- Specified by:
getTimeParseFormatin interfacePivotTableExtension- Returns:
- time format or null
-
setTimeParseFormat
Description copied from interface:PivotTableExtensionSets 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:
setTimeParseFormatin interfacePivotTableExtension- Parameters:
timeParseFormat- time format (e.g. HH:mm)
-
isRendererSupported
Description copied from interface:PivotTableExtensionChecks whether renderer is supported by the exporter.- Specified by:
isRendererSupportedin interfacePivotTableExtension- Parameters:
renderer- renderer to check- Returns:
trueif renderer is supported by the exporter
-
getExportFormat
- Specified by:
getExportFormatin interfacePivotTableExtension- Returns:
- export format
XLSorXLSX
-
setExportFormat
Description copied from interface:PivotTableExtensionSets export formatXLSorXLSX. The default value isXLSX.- Specified by:
setExportFormatin interfacePivotTableExtension- Parameters:
exportFormat- format that should have exported file
-
setupParseFormats
protected void setupParseFormats() -
checkSupportedRenderer
protected void checkSupportedRenderer() -
checkRenderer
-