Package io.jmix.ui.component.table
Class GroupTableDataContainer<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>
- 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,GroupTableContainer,TableSortableContainer,Serializable
- Direct Known Subclasses:
GroupTableImpl.AggregatableGroupTableDataContainer
public class GroupTableDataContainer<I>
extends SortableDataContainer<I>
implements GroupTableContainer
- See Also:
-
Nested Class Summary
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
FieldsFields 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
ConstructorsConstructorDescriptionGroupTableDataContainer(GroupTableItems<I> tableSource, TableItemsEventsDelegate<I> dataEventsDelegate) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidvoidvoidprotected voidcollectItemIds(GroupInfo groupId, List<Object> itemIds) protected voidprotected voidvoidprotected voidexpand(Collection groupIds) voidprotected ListCollection<?>getChildren(Object id) Collection<?>intCollection<?>protected GroupTableItems<I>Collection<?>voidbooleanhasChildren(Object id) booleanbooleanisExpanded(Object id) booleanbooleanbooleannextItemId(Object itemId) prevItemId(Object itemId) protected voidprotected voidprotected voidrestoreState(Set<GroupInfo> expandState) Collection<?>intsize()Methods 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, getType, removeAllItems, removeContainerProperty, removeItemMethods 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
-
expandedGroups
-
cachedItemIds
-
first
-
last
-
-
Constructor Details
-
GroupTableDataContainer
public GroupTableDataContainer(GroupTableItems<I> tableSource, TableItemsEventsDelegate<I> dataEventsDelegate)
-
-
Method Details
-
getGroupTableSource
-
groupBy
- Specified by:
groupByin interfaceGroupTableContainer
-
saveState
-
restoreState
-
doGroup
-
doRefreshGroup
protected void doRefreshGroup() -
isGroup
- Specified by:
isGroupin interfaceGroupTableContainer
-
rootGroups
- Specified by:
rootGroupsin interfaceGroupTableContainer
-
hasChildren
- Specified by:
hasChildrenin interfaceGroupTableContainer
-
getChildren
- Specified by:
getChildrenin interfaceGroupTableContainer
-
getGroupProperty
- Specified by:
getGroupPropertyin interfaceGroupTableContainer
-
getGroupPropertyValue
- Specified by:
getGroupPropertyValuein interfaceGroupTableContainer
-
getGroupItemIds
- Specified by:
getGroupItemIdsin interfaceGroupTableContainer
-
getGroupItemsCount
- Specified by:
getGroupItemsCountin interfaceGroupTableContainer
-
hasGroups
public boolean hasGroups()- Specified by:
hasGroupsin interfaceGroupTableContainer
-
getGroupProperties
- Specified by:
getGroupPropertiesin interfaceGroupTableContainer
-
expandAll
public void expandAll()- Specified by:
expandAllin interfaceGroupTableContainer
-
expand
-
expand
- Specified by:
expandin interfaceGroupTableContainer
-
collapseAll
public void collapseAll()- Specified by:
collapseAllin interfaceGroupTableContainer
-
collapse
- Specified by:
collapsein interfaceGroupTableContainer
-
isExpanded
- Specified by:
isExpandedin interfaceGroupTableContainer
-
getItemIds
- Specified by:
getItemIdsin interfacecom.vaadin.v7.data.Container- Overrides:
getItemIdsin classTableDataContainer<I>
-
getCachedItemIds
-
collectItemIds
-
resetCachedItems
protected void resetCachedItems()- Overrides:
resetCachedItemsin classTableDataContainer<I>
-
resetGroupCachedItems
protected void resetGroupCachedItems() -
size
public int size()- Specified by:
sizein interfacecom.vaadin.v7.data.Container- Overrides:
sizein classTableDataContainer<I>
-
firstItemId
- Specified by:
firstItemIdin interfacecom.vaadin.v7.data.Container.Ordered- Overrides:
firstItemIdin classSortableDataContainer<I>
-
lastItemId
- Specified by:
lastItemIdin interfacecom.vaadin.v7.data.Container.Ordered- Overrides:
lastItemIdin classSortableDataContainer<I>
-
nextItemId
- Specified by:
nextItemIdin interfacecom.vaadin.v7.data.Container.Ordered- Overrides:
nextItemIdin classSortableDataContainer<I>
-
prevItemId
- Specified by:
prevItemIdin interfacecom.vaadin.v7.data.Container.Ordered- Overrides:
prevItemIdin classSortableDataContainer<I>
-
isFirstId
- Specified by:
isFirstIdin interfacecom.vaadin.v7.data.Container.Ordered- Overrides:
isFirstIdin classSortableDataContainer<I>
-
isLastId
- Specified by:
isLastIdin interfacecom.vaadin.v7.data.Container.Ordered- Overrides:
isLastIdin classSortableDataContainer<I>
-
beforeFireItemSetChanged
protected void beforeFireItemSetChanged()- Overrides:
beforeFireItemSetChangedin classTableDataContainer<I>
-
beforeFireStateChanged
- Overrides:
beforeFireStateChangedin classTableDataContainer<I>
-