Class JmixPivotTableSerializer
java.lang.Object
io.jmix.pivottable.serialization.impl.JmixPivotTableSerializer
- All Implemented Interfaces:
PivotTableSerializer
@Component("ui_JmixPivotTableSerializer")
@Scope("prototype")
public class JmixPivotTableSerializer
extends Object
implements PivotTableSerializer
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final com.google.gson.Gson
protected PivotTableDataItemsSerializer
protected PivotTableModelSerializer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected PivotJsonSerializationContext
createPivotJsonSerializationContext
(PivotTableModel pivotTable) serialize
(PivotTableModel pivotTable) serialize
(PivotTableModel pivotTable, Consumer<PivotTableSerializationContext> postSerializationHandler) serializeData
(PivotTableModel pivotTable) serializeData
(PivotTableModel pivotTable, Consumer<PivotTableSerializationContext> postSerializationHandler) void
setItemsSerializer
(PivotTableDataItemsSerializer dataItemsSerializer) void
setModelSerializer
(PivotTableModelSerializer modelSerializer)
-
Field Details
-
gson
protected static final com.google.gson.Gson gson -
modelSerializer
-
itemsSerializer
-
-
Constructor Details
-
JmixPivotTableSerializer
public JmixPivotTableSerializer()
-
-
Method Details
-
setModelSerializer
-
setItemsSerializer
-
serialize
- Specified by:
serialize
in interfacePivotTableSerializer
-
serialize
public String serialize(PivotTableModel pivotTable, Consumer<PivotTableSerializationContext> postSerializationHandler) - Specified by:
serialize
in interfacePivotTableSerializer
-
serializeData
- Specified by:
serializeData
in interfacePivotTableSerializer
-
serializeData
@Nullable public String serializeData(PivotTableModel pivotTable, Consumer<PivotTableSerializationContext> postSerializationHandler) - Specified by:
serializeData
in interfacePivotTableSerializer
-
createPivotJsonSerializationContext
protected PivotJsonSerializationContext createPivotJsonSerializationContext(PivotTableModel pivotTable) -
toJson
- Specified by:
toJson
in interfacePivotTableSerializer
-