Package io.jmix.pivottable.component
Interface PivotTableExtension
- All Known Implementing Classes:
PivotTableExtensionImpl
public interface PivotTableExtension
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.
-
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:
true
if renderer is supported by the exporter
-
getExportFormat
PivotExcelExporter.ExportFormat getExportFormat()- Returns:
- export format
XLS
orXLSX
-
setExportFormat
Sets export formatXLS
orXLSX
. The default value isXLSX
.- Parameters:
exportFormat
- format that should have exported file
-