protected class TreeTableImpl.AggregatableTreeTableDataContainer<I> extends TreeTableDataContainer<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 |
dataEventsDelegate, ignoreListeners, itemsCache, itemSetChangeListeners, itemSetChangeSubscription, properties, propertyValueChangeListeners, selectedItemChangeSubscription, stateChangeSubscription, tableItems, valueChangeSubscription, VOID_VALUE_CHANGE_EVENT, wrappersPool
Constructor and Description |
---|
AggregatableTreeTableDataContainer(TreeTableItems<I> tableDataSource,
TableItemsEventsDelegate<I> dataEventsDelegate) |
Modifier and Type | Method and Description |
---|---|
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.
|
java.util.Collection |
getAggregationPropertyIds() |
void |
removeContainerPropertyAggregation(java.lang.Object propertyId) |
areChildrenAllowed, getChildren, getItemLevel, getLevel, getParent, getTreeTableSource, hasChildren, isRoot, rootItemIds, setChildrenAllowed, setParent
addItemAfter, addItemAfter, firstItemId, getSortableContainerPropertyIds, getSortableTableSource, isFirstId, isLastId, lastItemId, nextItemId, prevItemId, resetSortOrder, sort
addContainerProperty, addItem, addItem, addItemSetChangeListener, addListener, addValueChangeListener, beforeFireItemSetChanged, beforeFireStateChanged, borrowItemWrapper, containsId, datasourceItemSetChanged, datasourceSelectedItemChanged, datasourceStateChanged, datasourceValueChanged, fireItemSetChanged, getContainerProperty, getContainerPropertyIds, getInternalItem, getItem, getItemIds, getItemWrapper, getItemWrapperNonCached, getTableItems, getType, removeAllItems, removeContainerProperty, removeItem, removeItemSetChangeListener, removeListener, resetCachedItems, returnItemWrapper, setProperties, size, 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
getSortableContainerPropertyIds, sort
public AggregatableTreeTableDataContainer(TreeTableItems<I> tableDataSource, TableItemsEventsDelegate<I> dataEventsDelegate)
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