Package io.jmix.pivottable.model
Class Aggregations
java.lang.Object
io.jmix.pivottable.model.AbstractPivotObject
io.jmix.pivottable.model.Aggregations
- All Implemented Interfaces:
Serializable
Configuration of aggregations. Use when
PivotTableModel.editable is set to true.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAggregations(Aggregation... aggregations) Adds an array which will be converted to a dictionary of generators for aggregation functions in dropdown menu.setAggregations(List<Aggregation> aggregations) Sets a list which will be converted to a dictionary of generators for aggregation functions in dropdown menu.setSelectedAggregation(AggregationMode selectedAggregation) Sets one of predefined aggregations, which name will be converted toaggregatorName- an aggregator to prepopulate in dropdown i.e.
-
Constructor Details
-
Aggregations
public Aggregations()
-
-
Method Details
-
getAggregations
- Returns:
- a list which will be converted to a dictionary of generators for aggregation functions in dropdown menu
-
setAggregations
Sets a list which will be converted to a dictionary of generators for aggregation functions in dropdown menu.- Parameters:
aggregations- a list which will be converted to a dictionary of generators for aggregation functions in dropdown menu- Returns:
- a reference to this object
-
addAggregations
Adds an array which will be converted to a dictionary of generators for aggregation functions in dropdown menu.- Parameters:
aggregations- an array which will be converted to a dictionary of generators for aggregation functions in dropdown menu- Returns:
- a reference to this object
-
getSelectedAggregation
- Returns:
- a selected aggregation
-
setSelectedAggregation
@StudioProperty(name="selected") public Aggregations setSelectedAggregation(AggregationMode selectedAggregation) Sets one of predefined aggregations, which name will be converted toaggregatorName- an aggregator to prepopulate in dropdown i.e. key toaggregatorsobject.- Parameters:
selectedAggregation- an aggregation to set as a selected- Returns:
- a reference to this object
-