protected class GroupTableImpl.AggregatableGroupTableDataContainer<I> extends GroupTableDataContainer<I> implements AggregationContainer
AggregationContainer.Context, AggregationContainer.Type
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
Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.lang.Object> |
aggregationProperties |
cachedItemIds, expandedGroups, first, last
dataEventsDelegate, ignoreListeners, itemsCache, itemSetChangeListeners, itemSetChangeSubscription, properties, propertyValueChangeListeners, selectedItemChangeSubscription, stateChangeSubscription, tableItems, valueChangeSubscription, VOID_VALUE_CHANGE_EVENT, wrappersPool
Constructor and Description |
---|
AggregatableGroupTableDataContainer(GroupTableItems<I> tableSource,
TableItemsEventsDelegate<I> dataEventsDelegate) |
Modifier and Type | Method and Description |
---|---|
protected void |
__fillGroupAggregationCells(java.lang.Object groupId,
java.util.Map<Table.Column,GroupTableImpl.GroupAggregationCells> cells) |
void |
addContainerPropertyAggregation(java.lang.Object propertyId,
AggregationContainer.Type type) |
java.util.Map<java.lang.Object,java.lang.Object> |
aggregate(AggregationContainer.Context context)
Perform aggregation and return map with formatted string values.
|
java.util.Map<java.lang.Object,java.lang.Object> |
aggregateValues(AggregationContainer.Context context)
Perform aggregation and return map with aggregation info and aggregation column type, i.e.
|
protected void |
doGroup(java.lang.Object[] properties) |
protected void |
fillGroupAggregationCells(java.util.Map<Table.Column,GroupTableImpl.GroupAggregationCells> cells) |
java.util.Collection |
getAggregationPropertyIds() |
void |
removeContainerPropertyAggregation(java.lang.Object propertyId) |
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, size
addItemAfter, addItemAfter, getSortableContainerPropertyIds, getSortableTableSource, resetSortOrder, sort
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, unbind
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addContainerProperty, addItem, addItem, containsId, getContainerProperty, getContainerPropertyIds, getItem, getItemIds, getType, removeAllItems, removeContainerProperty, removeItem, size
resetSortOrder
public AggregatableGroupTableDataContainer(GroupTableItems<I> tableSource, TableItemsEventsDelegate<I> dataEventsDelegate)
protected void doGroup(java.lang.Object[] properties)
doGroup
in class GroupTableDataContainer<I>
protected void fillGroupAggregationCells(java.util.Map<Table.Column,GroupTableImpl.GroupAggregationCells> cells)
protected void __fillGroupAggregationCells(java.lang.Object groupId, java.util.Map<Table.Column,GroupTableImpl.GroupAggregationCells> cells)
public java.util.Collection getAggregationPropertyIds()
getAggregationPropertyIds
in interface AggregationContainer
public void addContainerPropertyAggregation(java.lang.Object propertyId, AggregationContainer.Type type)
addContainerPropertyAggregation
in interface AggregationContainer
public void removeContainerPropertyAggregation(java.lang.Object propertyId)
removeContainerPropertyAggregation
in interface AggregationContainer
public java.util.Map<java.lang.Object,java.lang.Object> aggregate(AggregationContainer.Context context)
AggregationContainer
aggregate
in interface AggregationContainer
context
- aggregation contextpublic java.util.Map<java.lang.Object,java.lang.Object> aggregateValues(AggregationContainer.Context context)
AggregationContainer
aggregateValues
in interface AggregationContainer
context
- aggregation context