Package io.jmix.ui.widget.data
Interface AggregationContainer
- All Superinterfaces:
com.vaadin.v7.data.Container
,Serializable
- All Known Subinterfaces:
JmixEnhancedTable
- All Known Implementing Classes:
AbstractTable.AggregatableSortableDataContainer
,AbstractTable.AggregatableTableDataContainer
,GroupTableImpl.AggregatableGroupTableDataContainer
,GroupTableImpl.JmixGroupTableExt
,JmixGroupTable
,JmixTable
,JmixTreeTable
,NullGroupTableContainer
,NullTreeTableContainer
,TreeTableImpl.AggregatableTreeTableDataContainer
public interface AggregationContainer
extends com.vaadin.v7.data.Container
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
static enum
Nested classes/interfaces inherited from interface com.vaadin.v7.data.Container
com.vaadin.v7.data.Container.Editor, com.vaadin.v7.data.Container.Filter, com.vaadin.v7.data.Container.Filterable, com.vaadin.v7.data.Container.Hierarchical, com.vaadin.v7.data.Container.Indexed, com.vaadin.v7.data.Container.ItemSetChangeEvent, com.vaadin.v7.data.Container.ItemSetChangeListener, com.vaadin.v7.data.Container.ItemSetChangeNotifier, com.vaadin.v7.data.Container.Ordered, com.vaadin.v7.data.Container.PropertySetChangeEvent, com.vaadin.v7.data.Container.PropertySetChangeListener, com.vaadin.v7.data.Container.PropertySetChangeNotifier, com.vaadin.v7.data.Container.SimpleFilterable, com.vaadin.v7.data.Container.Sortable, com.vaadin.v7.data.Container.Viewer
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addContainerPropertyAggregation
(Object propertyId, AggregationContainer.Type type) aggregate
(AggregationContainer.Context context) Perform aggregation and return map with formatted string values.Perform aggregation and return map with aggregation info and aggregation column type, i.e.void
removeContainerPropertyAggregation
(Object propertyId) Methods inherited from interface com.vaadin.v7.data.Container
addContainerProperty, addItem, addItem, containsId, getContainerProperty, getContainerPropertyIds, getItem, getItemIds, getType, removeAllItems, removeContainerProperty, removeItem, size
-
Method Details
-
getAggregationPropertyIds
Collection getAggregationPropertyIds() -
addContainerPropertyAggregation
-
removeContainerPropertyAggregation
-
aggregate
Perform aggregation and return map with formatted string values.- Parameters:
context
- aggregation context- Returns:
- map with aggregation info and formatted string values
-
aggregateValues
Perform aggregation and return map with aggregation info and aggregation column type, i.e. if aggregation was performed for Long type column it will return pair: AggregationInfo - Long.- Parameters:
context
- aggregation context- Returns:
- map with aggregation info and aggregation column type
-