Class Aggregation
java.lang.Object
io.jmix.pivottableflowui.kit.component.model.PivotTableOptionsObservable
io.jmix.pivottableflowui.kit.component.model.Aggregation
- All Implemented Interfaces:
- Serializable
Constructor for an object which will aggregate results per cell
 (see documentation).
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class io.jmix.pivottableflowui.kit.component.model.PivotTableOptionsObservablePivotTableOptionsObservable.ObjectChangeEvent
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected Stringprotected Booleanprotected JsFunctionprotected AggregationModeFields inherited from class io.jmix.pivottableflowui.kit.component.model.PivotTableOptionsObservablechangedFromClient, listener
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddProperties(String... properties) getMode()voidsetCaption(String caption) WhenAggregationis set asPivotTableOptions.aggregation, thencaptionwill be converted toaggregatorName- the name of the aggregator, used for display purposes in some renderers.voidSets whatever a function defined infunctionfield must be used as the aggregation.voidsetFunction(JsFunction function) Sets a function which will aggregate results per cell (see documentation).voidsetMode(AggregationMode mode) Sets one of predefined aggregation modes.voidsetProperties(List<String> properties) Sets a collection of property names to pass as parameters to selected aggregation.Methods inherited from class io.jmix.pivottableflowui.kit.component.model.PivotTableOptionsObservablefireChangeEvent, markAsChanged, setChangedFromClient, setPivotTableObjectChangeListener
- 
Field Details- 
mode
- 
caption
- 
custom
- 
function
- 
properties
 
- 
- 
Constructor Details- 
Aggregationpublic Aggregation()
 
- 
- 
Method Details- 
getMode- Returns:
- one of predefined aggregation modes
 
- 
setModeSets one of predefined aggregation modes.Applies only when custom=false.- Parameters:
- mode- one of predefined aggregation modes
- See Also:
 
- 
getCaption- Returns:
- a caption of aggregation
 
- 
setCaptionWhenAggregationis set asPivotTableOptions.aggregation, thencaptionwill be converted toaggregatorName- the name of the aggregator, used for display purposes in some renderers.When Aggregationis added as one ofAggregations.aggregations, thencaptionwill be converted to a key in dictionary of generators for aggregation functions in dropdown menu.- Parameters:
- caption- a caption of aggregation
 
- 
getCustom- Returns:
- trueif a function defined in- functionfield must be used as the aggregation,- falseotherwise
 
- 
setCustomSets whatever a function defined infunctionfield must be used as the aggregation.- Parameters:
- custom-- trueif a function defined in- functionfield must be used as the aggregation,- falseotherwise
- See Also:
 
- 
getFunction- Returns:
- a function which will aggregate results per cell
 
- 
setFunctionSets a function which will aggregate results per cell (see documentation).Applies only when custom=true.- Parameters:
- function- a function which will aggregate results per cell
- See Also:
 
- 
getProperties- Returns:
- a collection of property names to pass as parameters to selected aggregation
 
- 
setPropertiesSets a collection of property names to pass as parameters to selected aggregation.Applies only when custom=false.- Parameters:
- properties- a collection of property names to pass as parameters to selected aggregation
- See Also:
 
- 
addProperties
 
-