Package io.jmix.uiexport.exporter
Interface TableExporter
- All Known Implementing Classes:
AbstractTableExporter
,ExcelExporter
,JsonExporter
public interface TableExporter
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Describes a context for a column value provider. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addColumnValueProvider
(String columnId, Function<TableExporter.ColumnValueContext, Object> columnValueProvider) Adds a function to get value from the column.void
exportDataGrid
(Downloader downloader, DataGrid<Object> dataGrid, ExportMode exportMode) downloaddataGrid
content viadownloader
void
exportTable
(Downloader downloader, Table<Object> table, ExportMode exportMode) downloadtable
content viadownloader
returns exporter captiongetColumnValueProvider
(String columnId) void
removeColumnValueProvider
(String columnId) Removes an column value provider function by column id.
-
Method Details
-
exportTable
downloadtable
content viadownloader
-
exportDataGrid
downloaddataGrid
content viadownloader
-
getCaption
String getCaption()returns exporter caption -
addColumnValueProvider
void addColumnValueProvider(String columnId, Function<TableExporter.ColumnValueContext, Object> columnValueProvider) Adds a function to get value from the column.- Parameters:
columnId
- column idcolumnValueProvider
- column value provider function
-
removeColumnValueProvider
Removes an column value provider function by column id.- Parameters:
columnId
- column id
-
getColumnValueProvider
- Parameters:
columnId
- column id- Returns:
- column value provider function for the column id
-