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
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
ConstructorDescriptionGroupTableDataContainer
(GroupTableItems<I> tableSource, TableItemsEventsDelegate<I> dataEventsDelegate) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
void
void
protected void
collectItemIds
(GroupInfo groupId, List<Object> itemIds) protected void
protected void
void
protected void
expand
(Collection groupIds) void
protected List
Collection<?>
getChildren
(Object id) Collection<?>
int
Collection<?>
protected GroupTableItems<I>
Collection<?>
void
boolean
hasChildren
(Object id) boolean
boolean
isExpanded
(Object id) boolean
boolean
boolean
nextItemId
(Object itemId) prevItemId
(Object itemId) protected void
protected void
protected void
restoreState
(Set<GroupInfo> expandState) Collection<?>
int
size()
Methods inherited from class io.jmix.ui.component.table.SortableDataContainer
addItemAfter, addItemAfter, getSortableContainerPropertyIds, getSortableTableSource, resetSortOrder, sort
Methods 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, 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, getType, removeAllItems, removeContainerProperty, removeItem
Methods inherited from interface com.vaadin.v7.data.Container.Ordered
addItemAfter, addItemAfter
Methods inherited from interface com.vaadin.v7.data.Container.Sortable
getSortableContainerPropertyIds, sort
Methods 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:
groupBy
in interfaceGroupTableContainer
-
saveState
-
restoreState
-
doGroup
-
doRefreshGroup
protected void doRefreshGroup() -
isGroup
- Specified by:
isGroup
in interfaceGroupTableContainer
-
rootGroups
- Specified by:
rootGroups
in interfaceGroupTableContainer
-
hasChildren
- Specified by:
hasChildren
in interfaceGroupTableContainer
-
getChildren
- Specified by:
getChildren
in interfaceGroupTableContainer
-
getGroupProperty
- Specified by:
getGroupProperty
in interfaceGroupTableContainer
-
getGroupPropertyValue
- Specified by:
getGroupPropertyValue
in interfaceGroupTableContainer
-
getGroupItemIds
- Specified by:
getGroupItemIds
in interfaceGroupTableContainer
-
getGroupItemsCount
- Specified by:
getGroupItemsCount
in interfaceGroupTableContainer
-
hasGroups
public boolean hasGroups()- Specified by:
hasGroups
in interfaceGroupTableContainer
-
getGroupProperties
- Specified by:
getGroupProperties
in interfaceGroupTableContainer
-
expandAll
public void expandAll()- Specified by:
expandAll
in interfaceGroupTableContainer
-
expand
-
expand
- Specified by:
expand
in interfaceGroupTableContainer
-
collapseAll
public void collapseAll()- Specified by:
collapseAll
in interfaceGroupTableContainer
-
collapse
- Specified by:
collapse
in interfaceGroupTableContainer
-
isExpanded
- Specified by:
isExpanded
in interfaceGroupTableContainer
-
getItemIds
- Specified by:
getItemIds
in interfacecom.vaadin.v7.data.Container
- Overrides:
getItemIds
in classTableDataContainer<I>
-
getCachedItemIds
-
collectItemIds
-
resetCachedItems
protected void resetCachedItems()- Overrides:
resetCachedItems
in classTableDataContainer<I>
-
resetGroupCachedItems
protected void resetGroupCachedItems() -
size
public int size()- Specified by:
size
in interfacecom.vaadin.v7.data.Container
- Overrides:
size
in classTableDataContainer<I>
-
firstItemId
- Specified by:
firstItemId
in interfacecom.vaadin.v7.data.Container.Ordered
- Overrides:
firstItemId
in classSortableDataContainer<I>
-
lastItemId
- Specified by:
lastItemId
in interfacecom.vaadin.v7.data.Container.Ordered
- Overrides:
lastItemId
in classSortableDataContainer<I>
-
nextItemId
- Specified by:
nextItemId
in interfacecom.vaadin.v7.data.Container.Ordered
- Overrides:
nextItemId
in classSortableDataContainer<I>
-
prevItemId
- Specified by:
prevItemId
in interfacecom.vaadin.v7.data.Container.Ordered
- Overrides:
prevItemId
in classSortableDataContainer<I>
-
isFirstId
- Specified by:
isFirstId
in interfacecom.vaadin.v7.data.Container.Ordered
- Overrides:
isFirstId
in classSortableDataContainer<I>
-
isLastId
- Specified by:
isLastId
in interfacecom.vaadin.v7.data.Container.Ordered
- Overrides:
isLastId
in classSortableDataContainer<I>
-
beforeFireItemSetChanged
protected void beforeFireItemSetChanged()- Overrides:
beforeFireItemSetChanged
in classTableDataContainer<I>
-
beforeFireStateChanged
- Overrides:
beforeFireStateChanged
in classTableDataContainer<I>
-