Class Aggregations

java.lang.Object
io.jmix.pivottable.model.AbstractPivotObject
io.jmix.pivottable.model.Aggregations
All Implemented Interfaces:
Serializable

public class Aggregations extends AbstractPivotObject
Configuration of aggregations. Use when PivotTableModel.editable is set to true.
See Also:
  • Constructor Details

    • Aggregations

      public Aggregations()
  • Method Details

    • getAggregations

      public List<Aggregation> getAggregations()
      Returns:
      a list which will be converted to a dictionary of generators for aggregation functions in dropdown menu
    • setAggregations

      public Aggregations setAggregations(List<Aggregation> aggregations)
      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

      public Aggregations addAggregations(Aggregation... aggregations)
      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

      public AggregationMode getSelectedAggregation()
      Returns:
      a selected aggregation
    • setSelectedAggregation

      public Aggregations setSelectedAggregation(AggregationMode selectedAggregation)
      Sets one of predefined aggregations, which name will be converted to aggregatorName - an aggregator to prepopulate in dropdown i.e. key to aggregators object.
      Parameters:
      selectedAggregation - an aggregation to set as a selected
      Returns:
      a reference to this object