Package io.jmix.ui.component.data.table
Class EmptyGroupTableItems<E>
java.lang.Object
io.jmix.ui.component.data.table.EmptyTableItems<E>
io.jmix.ui.component.data.table.EmptyGroupTableItems<E>
- All Implemented Interfaces:
DataUnit,GroupTableItems<E>,EmptyDataUnit,EntityDataUnit,EntityTableItems<E>,TableItems<E>,TableItems.Ordered<E>,TableItems.Sortable<E>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.ui.component.data.DataUnit
DataUnit.StateChangeEventNested 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> -
Field Summary
Fields inherited from class io.jmix.ui.component.data.table.EmptyTableItems
metaClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsGroup(GroupInfo groupId) Indicates that a group is contained in the groups treegetChildItems(GroupInfo groupId) getChildren(GroupInfo groupId) Collection<?>getGroupItemIds(GroupInfo groupId) intgetGroupItemsCount(GroupInfo groupId) getGroupPath(E item) Collection<?>getGroupProperty(GroupInfo groupId) getGroupPropertyValue(GroupInfo groupId) getOwnChildItems(GroupInfo groupId) getParentGroup(E item) voidPerform grouping by the list of propertiesbooleanhasChildren(GroupInfo groupId) Indicates that group has nested groupsbooleanIndicated that a datasource has groupsbooleanTests if the Item corresponding to the given Item ID is the first item.booleanTests if the item corresponding to the given item ID is the last item.nextItemId(Object itemId) Gets the ID of the item following the Item that corresponds toitemId.prevItemId(Object itemId) Gets the ID of the item preceding the item that corresponds toitemId.voidResets sort order.voidSorts data.Methods inherited from class io.jmix.ui.component.data.table.EmptyTableItems
addItemSetChangeListener, addSelectedItemChangeListener, addStateChangeListener, addValueChangeListener, containsId, getEntityMetaClass, getItem, getItemIds, getItems, getItemValue, getSelectedItem, getState, getType, setSelectedItem, size, supportsProperty, updateItemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.ui.component.data.DataUnit
addStateChangeListener, getStateMethods inherited from interface io.jmix.ui.component.data.TableItems
addItemSetChangeListener, addSelectedItemChangeListener, addValueChangeListener, containsId, getItem, getItemIds, getItemNN, getItems, getItemValue, getType, size, supportsProperty, updateItemMethods inherited from interface io.jmix.ui.component.data.TableItems.Sortable
enableSorting, suppressSorting
-
Constructor Details
-
EmptyGroupTableItems
-
-
Method Details
-
groupBy
Description copied from interface:GroupTableItemsPerform grouping by the list of properties- Specified by:
groupByin interfaceGroupTableItems<E>
-
rootGroups
- Specified by:
rootGroupsin interfaceGroupTableItems<E>- Returns:
- the list of root groups
-
hasChildren
Description copied from interface:GroupTableItemsIndicates that group has nested groups- Specified by:
hasChildrenin interfaceGroupTableItems<E>
-
getChildren
- Specified by:
getChildrenin interfaceGroupTableItems<E>- Returns:
- the list of nested groups
-
getOwnChildItems
- Specified by:
getOwnChildItemsin interfaceGroupTableItems<E>- Returns:
- the list of nested items
-
getChildItems
- Specified by:
getChildItemsin interfaceGroupTableItems<E>- Returns:
- the list of items from all nested group levels
-
getParentGroup
- Specified by:
getParentGroupin interfaceGroupTableItems<E>- Returns:
- the parent group of passed item
-
getGroupPath
- Specified by:
getGroupPathin interfaceGroupTableItems<E>- Returns:
- the path through all parent groups
-
getGroupProperty
- Specified by:
getGroupPropertyin interfaceGroupTableItems<E>- Returns:
- a group property
-
getGroupPropertyValue
- Specified by:
getGroupPropertyValuein interfaceGroupTableItems<E>- Returns:
- a group property value
-
getGroupItemIds
- Specified by:
getGroupItemIdsin interfaceGroupTableItems<E>- Returns:
- item ids that are contained in the selected group
-
getGroupItemsCount
- Specified by:
getGroupItemsCountin interfaceGroupTableItems<E>- Returns:
- a count of items that are contained in the selected group
-
hasGroups
public boolean hasGroups()Description copied from interface:GroupTableItemsIndicated that a datasource has groups- Specified by:
hasGroupsin interfaceGroupTableItems<E>
-
getGroupProperties
- Specified by:
getGroupPropertiesin interfaceGroupTableItems<E>- Returns:
- group properties
-
containsGroup
Description copied from interface:GroupTableItemsIndicates that a group is contained in the groups tree- Specified by:
containsGroupin interfaceGroupTableItems<E>
-
nextItemId
Description copied from interface:TableItems.OrderedGets the ID of the item following the Item that corresponds toitemId.- Specified by:
nextItemIdin interfaceTableItems.Ordered<E>- Overrides:
nextItemIdin classEmptyTableItems<E>- Parameters:
itemId- item id- Returns:
- ID of the next visible Item or
null
-
prevItemId
Description copied from interface:TableItems.OrderedGets the ID of the item preceding the item that corresponds toitemId.- Specified by:
prevItemIdin interfaceTableItems.Ordered<E>- Overrides:
prevItemIdin classEmptyTableItems<E>- Parameters:
itemId- item id- Returns:
- ID of the previous visible item or
null
-
firstItemId
- Specified by:
firstItemIdin interfaceTableItems.Ordered<E>- Overrides:
firstItemIdin classEmptyTableItems<E>- Returns:
- ID of the first visible item
-
lastItemId
- Specified by:
lastItemIdin interfaceTableItems.Ordered<E>- Overrides:
lastItemIdin classEmptyTableItems<E>- Returns:
- ID of the last visible item
-
isFirstId
Description copied from interface:TableItems.OrderedTests if the Item corresponding to the given Item ID is the first item.- Specified by:
isFirstIdin interfaceTableItems.Ordered<E>- Overrides:
isFirstIdin classEmptyTableItems<E>- Parameters:
itemId- item id- Returns:
trueif the item is first visible item,falseif not
-
isLastId
Description copied from interface:TableItems.OrderedTests if the item corresponding to the given item ID is the last item.- Specified by:
isLastIdin interfaceTableItems.Ordered<E>- Overrides:
isLastIdin classEmptyTableItems<E>- Parameters:
itemId- item id- Returns:
trueif the item is last visible item in the,falseif not
-
sort
Description copied from interface:TableItems.SortableSorts data.- Specified by:
sortin interfaceTableItems.Sortable<E>- Overrides:
sortin classEmptyTableItems<E>- Parameters:
propertyId- id of propertyascending- asc / desc flags
-
resetSortOrder
public void resetSortOrder()Description copied from interface:TableItems.SortableResets sort order.- Specified by:
resetSortOrderin interfaceTableItems.Sortable<E>- Overrides:
resetSortOrderin classEmptyTableItems<E>
-