Package io.jmix.ui.component.data
Interface GroupTableItems<I>
- All Superinterfaces:
DataUnit
,TableItems<I>
,TableItems.Ordered<I>
,TableItems.Sortable<I>
- All Known Implementing Classes:
ContainerGroupTableItems
,EmptyGroupTableItems
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.ui.component.data.DataUnit
DataUnit.StateChangeEvent
Nested classes/interfaces inherited from interface io.jmix.ui.component.data.TableItems
TableItems.ItemSetChangeEvent<T>, TableItems.Ordered<T>, TableItems.SelectedItemChangeEvent<T>, TableItems.Sortable<T>, TableItems.ValueChangeEvent<T>
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsGroup
(GroupInfo groupId) Indicates that a group is contained in the groups treegetChildItems
(GroupInfo groupId) getChildren
(GroupInfo groupId) Collection<?>
getGroupItemIds
(GroupInfo groupId) int
getGroupItemsCount
(GroupInfo groupId) getGroupPath
(I item) Collection<?>
getGroupProperty
(GroupInfo groupId) getGroupPropertyValue
(GroupInfo groupId) getOwnChildItems
(GroupInfo groupId) getParentGroup
(I item) void
Perform grouping by the list of propertiesboolean
hasChildren
(GroupInfo groupId) Indicates that group has nested groupsboolean
Indicated that a datasource has groupsMethods inherited from interface io.jmix.ui.component.data.DataUnit
addStateChangeListener, getState
Methods inherited from interface io.jmix.ui.component.data.TableItems
addItemSetChangeListener, addSelectedItemChangeListener, addValueChangeListener, containsId, getItem, getItemIds, getItemNN, getItems, getItemValue, getType, size, supportsProperty, updateItem
Methods inherited from interface io.jmix.ui.component.data.TableItems.Ordered
firstItemId, isFirstId, isLastId, lastItemId, nextItemId, prevItemId
Methods inherited from interface io.jmix.ui.component.data.TableItems.Sortable
enableSorting, resetSortOrder, sort, suppressSorting
-
Method Details
-
groupBy
Perform grouping by the list of properties -
rootGroups
- Returns:
- the list of root groups
-
hasChildren
Indicates that group has nested groups -
getChildren
- Returns:
- the list of nested groups
-
getOwnChildItems
- Returns:
- the list of nested items
-
getChildItems
- Returns:
- the list of items from all nested group levels
-
getParentGroup
- Returns:
- the parent group of passed item
-
getGroupPath
- Returns:
- the path through all parent groups
-
getGroupProperty
- Returns:
- a group property
-
getGroupPropertyValue
- Returns:
- a group property value
-
getGroupItemIds
- Returns:
- item ids that are contained in the selected group
-
getGroupItemsCount
- Returns:
- a count of items that are contained in the selected group
-
hasGroups
boolean hasGroups()Indicated that a datasource has groups -
getGroupProperties
Collection<?> getGroupProperties()- Returns:
- group properties
-
containsGroup
Indicates that a group is contained in the groups tree
-