Package io.jmix.ui.component.impl
Class AbstractTable.AggregatableSortableDataContainer<I>
java.lang.Object
io.jmix.ui.component.table.TableDataContainer<I>
io.jmix.ui.component.table.SortableDataContainer<I>
io.jmix.ui.component.impl.AbstractTable.AggregatableSortableDataContainer<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
,TableSortableContainer
,Serializable
- Enclosing class:
- AbstractTable<T extends com.vaadin.v7.ui.Table & JmixEnhancedTable,
E>
protected class AbstractTable.AggregatableSortableDataContainer<I>
extends SortableDataContainer<I>
implements AggregationContainer
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.ui.widget.data.AggregationContainer
AggregationContainer.Context, AggregationContainer.Type
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
-
Field Summary
Fields 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
ConstructorDescriptionAggregatableSortableDataContainer
(TableItems.Sortable<I> tableDataSource, TableItemsEventsDelegate<I> dataEventsDelegate) -
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 class io.jmix.ui.component.table.SortableDataContainer
addItemAfter, addItemAfter, firstItemId, getSortableContainerPropertyIds, getSortableTableSource, isFirstId, isLastId, lastItemId, nextItemId, prevItemId, resetSortOrder, sort
Methods inherited from class io.jmix.ui.component.table.TableDataContainer
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.v7.data.Container
addContainerProperty, addItem, addItem, containsId, getContainerProperty, getContainerPropertyIds, getItem, getItemIds, getType, removeAllItems, removeContainerProperty, removeItem, size
-
Field Details
-
aggregationProperties
-
-
Constructor Details
-
AggregatableSortableDataContainer
public AggregatableSortableDataContainer(TableItems.Sortable<I> tableDataSource, TableItemsEventsDelegate<I> dataEventsDelegate)
-
-
Method Details
-
getAggregationPropertyIds
- Specified by:
getAggregationPropertyIds
in interfaceAggregationContainer
-
addContainerPropertyAggregation
- Specified by:
addContainerPropertyAggregation
in interfaceAggregationContainer
-
removeContainerPropertyAggregation
- Specified by:
removeContainerPropertyAggregation
in interfaceAggregationContainer
-
aggregate
Description copied from interface:AggregationContainer
Perform aggregation and return map with formatted string values.- Specified by:
aggregate
in interfaceAggregationContainer
- Parameters:
context
- aggregation context- Returns:
- map with aggregation info and formatted string values
-
aggregateValues
Description copied from interface:AggregationContainer
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.- Specified by:
aggregateValues
in interfaceAggregationContainer
- Parameters:
context
- aggregation context- Returns:
- map with aggregation info and aggregation column type
-