Package io.jmix.ui.component.impl
Class GroupTableImpl.AggregatableGroupTableDataContainer<I>
java.lang.Object
io.jmix.ui.component.table.TableDataContainer<I>
io.jmix.ui.component.table.SortableDataContainer<I>
io.jmix.ui.component.table.GroupTableDataContainer<I>
io.jmix.ui.component.impl.GroupTableImpl.AggregatableGroupTableDataContainer<I>
- All Implemented Interfaces:
com.vaadin.v7.data.Container,com.vaadin.v7.data.Container.ItemSetChangeNotifier,com.vaadin.v7.data.Container.Ordered,com.vaadin.v7.data.Container.Sortable,AggregationContainer,GroupTableContainer,TableSortableContainer,Serializable
- Enclosing class:
- GroupTableImpl<E>
protected class GroupTableImpl.AggregatableGroupTableDataContainer<I>
extends GroupTableDataContainer<I>
implements AggregationContainer
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.ui.widget.data.AggregationContainer
AggregationContainer.Context, AggregationContainer.TypeNested 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 -
Field Summary
FieldsFields inherited from class io.jmix.ui.component.table.GroupTableDataContainer
cachedItemIds, expandedGroups, first, lastFields inherited from class io.jmix.ui.component.table.TableDataContainer
dataEventsDelegate, ignoreListeners, itemsCache, itemSetChangeListeners, itemSetChangeSubscription, properties, propertyValueChangeListeners, selectedItemChangeSubscription, stateChangeSubscription, tableItems, valueChangeSubscription, VOID_VALUE_CHANGE_EVENT, wrappersPool -
Constructor Summary
ConstructorsConstructorDescriptionAggregatableGroupTableDataContainer(GroupTableItems<I> tableSource, TableItemsEventsDelegate<I> dataEventsDelegate) -
Method Summary
Modifier and TypeMethodDescriptionprotected void__fillGroupAggregationCells(Object groupId, Map<Table.Column, GroupTableImpl.GroupAggregationCells> cells) voidaddContainerPropertyAggregation(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.protected voidprotected voidvoidremoveContainerPropertyAggregation(Object propertyId) Methods inherited from class io.jmix.ui.component.table.GroupTableDataContainer
beforeFireItemSetChanged, beforeFireStateChanged, collapse, collapseAll, collectItemIds, doRefreshGroup, expand, expand, expandAll, firstItemId, getCachedItemIds, getChildren, getGroupItemIds, getGroupItemsCount, getGroupProperties, getGroupProperty, getGroupPropertyValue, getGroupTableSource, getItemIds, groupBy, hasChildren, hasGroups, isExpanded, isFirstId, isGroup, isLastId, lastItemId, nextItemId, prevItemId, resetCachedItems, resetGroupCachedItems, restoreState, rootGroups, saveState, sizeMethods inherited from class io.jmix.ui.component.table.SortableDataContainer
addItemAfter, addItemAfter, getSortableContainerPropertyIds, getSortableTableSource, resetSortOrder, sortMethods inherited from class io.jmix.ui.component.table.TableDataContainer
addContainerProperty, addItem, addItem, addItemSetChangeListener, addListener, addValueChangeListener, borrowItemWrapper, containsId, datasourceItemSetChanged, datasourceSelectedItemChanged, datasourceStateChanged, datasourceValueChanged, fireItemSetChanged, getContainerProperty, getContainerPropertyIds, getInternalItem, getItem, getItemWrapper, getItemWrapperNonCached, getTableItems, getType, removeAllItems, removeContainerProperty, removeItem, removeItemSetChangeListener, removeListener, returnItemWrapper, setProperties, unbindMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.v7.data.Container
addContainerProperty, addItem, addItem, containsId, getContainerProperty, getContainerPropertyIds, getItem, getItemIds, getType, removeAllItems, removeContainerProperty, removeItem, sizeMethods inherited from interface com.vaadin.v7.data.Container.Ordered
addItemAfter, addItemAfterMethods inherited from interface com.vaadin.v7.data.Container.Sortable
getSortableContainerPropertyIds, sortMethods inherited from interface io.jmix.ui.widget.data.TableSortableContainer
resetSortOrder
-
Field Details
-
aggregationProperties
-
-
Constructor Details
-
AggregatableGroupTableDataContainer
public AggregatableGroupTableDataContainer(GroupTableItems<I> tableSource, TableItemsEventsDelegate<I> dataEventsDelegate)
-
-
Method Details
-
doGroup
- Overrides:
doGroupin classGroupTableDataContainer<I>
-
fillGroupAggregationCells
protected void fillGroupAggregationCells(Map<Table.Column, GroupTableImpl.GroupAggregationCells> cells) -
__fillGroupAggregationCells
protected void __fillGroupAggregationCells(Object groupId, Map<Table.Column, GroupTableImpl.GroupAggregationCells> cells) -
getAggregationPropertyIds
- Specified by:
getAggregationPropertyIdsin interfaceAggregationContainer
-
addContainerPropertyAggregation
- Specified by:
addContainerPropertyAggregationin interfaceAggregationContainer
-
removeContainerPropertyAggregation
- Specified by:
removeContainerPropertyAggregationin interfaceAggregationContainer
-
aggregate
Description copied from interface:AggregationContainerPerform aggregation and return map with formatted string values.- Specified by:
aggregatein interfaceAggregationContainer- Parameters:
context- aggregation context- Returns:
- map with aggregation info and formatted string values
-
aggregateValues
Description copied from interface:AggregationContainerPerform 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.- Specified by:
aggregateValuesin interfaceAggregationContainer- Parameters:
context- aggregation context- Returns:
- map with aggregation info and aggregation column type
-