Package io.jmix.pivottable.component
Interface PivotTableExtension
- All Known Implementing Classes:
PivotTableExtensionImpl
public interface PivotTableExtension
-
Method Summary
Modifier and TypeMethodDescriptionvoidExports 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.
-
Method Details
-
exportTableToXls
void exportTableToXls()Exports PivotTable to Xls file. -
exportTableToXls
Exports PivotTable to Xls file.- Parameters:
downloader- downloader to save file
-
setFileName
Sets the file name.- Parameters:
fileName- file name
-
getFileName
String getFileName()- Returns:
- file name
-
getPivotDataJSON
String getPivotDataJSON()- Returns:
- JSON string which represents PivotTable with aggregated data
-
getPivotData
PivotData getPivotData()- Returns:
- serialized object from JSON which represents PivotTable with aggregated data
-
getDateTimeParseFormat
- Returns:
- dateTime format or null
-
setDateTimeParseFormat
Sets dateTime format that will be used to finding dateTime value and exporting it to excel with dateTime type.- Parameters:
dateTimeParseFormat- dateTime format (e.g. dd/MM/yyyy HH:mm)
-
getDateParseFormat
- Returns:
- date format or null
-
setDateParseFormat
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.- Parameters:
dateParseFormat- date format (e.g. dd/MM/yyyy)
-
getTimeParseFormat
- Returns:
- time format or null
-
setTimeParseFormat
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.- Parameters:
timeParseFormat- time format (e.g. HH:mm)
-
isRendererSupported
Checks whether renderer is supported by the exporter.- Parameters:
renderer- renderer to check- Returns:
trueif renderer is supported by the exporter
-
getExportFormat
PivotExcelExporter.ExportFormat getExportFormat()- Returns:
- export format
XLSorXLSX
-
setExportFormat
Sets export formatXLSorXLSX. The default value isXLSX.- Parameters:
exportFormat- format that should have exported file
-