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.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>
-
Field Summary
Fields inherited from class io.jmix.ui.component.data.table.EmptyTableItems
metaClass
-
Constructor Summary
-
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
(E item) Collection<?>
getGroupProperty
(GroupInfo groupId) getGroupPropertyValue
(GroupInfo groupId) getOwnChildItems
(GroupInfo groupId) getParentGroup
(E item) void
Perform grouping by the list of propertiesboolean
hasChildren
(GroupInfo groupId) Indicates that group has nested groupsboolean
Indicated that a datasource has groupsboolean
Tests if the Item corresponding to the given Item ID is the first item.boolean
Tests 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
.void
Resets sort order.void
Sorts 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, updateItem
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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.Sortable
enableSorting, suppressSorting
-
Constructor Details
-
EmptyGroupTableItems
-
-
Method Details
-
groupBy
Description copied from interface:GroupTableItems
Perform grouping by the list of properties- Specified by:
groupBy
in interfaceGroupTableItems<E>
-
rootGroups
- Specified by:
rootGroups
in interfaceGroupTableItems<E>
- Returns:
- the list of root groups
-
hasChildren
Description copied from interface:GroupTableItems
Indicates that group has nested groups- Specified by:
hasChildren
in interfaceGroupTableItems<E>
-
getChildren
- Specified by:
getChildren
in interfaceGroupTableItems<E>
- Returns:
- the list of nested groups
-
getOwnChildItems
- Specified by:
getOwnChildItems
in interfaceGroupTableItems<E>
- Returns:
- the list of nested items
-
getChildItems
- Specified by:
getChildItems
in interfaceGroupTableItems<E>
- Returns:
- the list of items from all nested group levels
-
getParentGroup
- Specified by:
getParentGroup
in interfaceGroupTableItems<E>
- Returns:
- the parent group of passed item
-
getGroupPath
- Specified by:
getGroupPath
in interfaceGroupTableItems<E>
- Returns:
- the path through all parent groups
-
getGroupProperty
- Specified by:
getGroupProperty
in interfaceGroupTableItems<E>
- Returns:
- a group property
-
getGroupPropertyValue
- Specified by:
getGroupPropertyValue
in interfaceGroupTableItems<E>
- Returns:
- a group property value
-
getGroupItemIds
- Specified by:
getGroupItemIds
in interfaceGroupTableItems<E>
- Returns:
- item ids that are contained in the selected group
-
getGroupItemsCount
- Specified by:
getGroupItemsCount
in interfaceGroupTableItems<E>
- Returns:
- a count of items that are contained in the selected group
-
hasGroups
public boolean hasGroups()Description copied from interface:GroupTableItems
Indicated that a datasource has groups- Specified by:
hasGroups
in interfaceGroupTableItems<E>
-
getGroupProperties
- Specified by:
getGroupProperties
in interfaceGroupTableItems<E>
- Returns:
- group properties
-
containsGroup
Description copied from interface:GroupTableItems
Indicates that a group is contained in the groups tree- Specified by:
containsGroup
in interfaceGroupTableItems<E>
-
nextItemId
Description copied from interface:TableItems.Ordered
Gets the ID of the item following the Item that corresponds toitemId
.- Specified by:
nextItemId
in interfaceTableItems.Ordered<E>
- Overrides:
nextItemId
in classEmptyTableItems<E>
- Parameters:
itemId
- item id- Returns:
- ID of the next visible Item or
null
-
prevItemId
Description copied from interface:TableItems.Ordered
Gets the ID of the item preceding the item that corresponds toitemId
.- Specified by:
prevItemId
in interfaceTableItems.Ordered<E>
- Overrides:
prevItemId
in classEmptyTableItems<E>
- Parameters:
itemId
- item id- Returns:
- ID of the previous visible item or
null
-
firstItemId
- Specified by:
firstItemId
in interfaceTableItems.Ordered<E>
- Overrides:
firstItemId
in classEmptyTableItems<E>
- Returns:
- ID of the first visible item
-
lastItemId
- Specified by:
lastItemId
in interfaceTableItems.Ordered<E>
- Overrides:
lastItemId
in classEmptyTableItems<E>
- Returns:
- ID of the last visible item
-
isFirstId
Description copied from interface:TableItems.Ordered
Tests if the Item corresponding to the given Item ID is the first item.- Specified by:
isFirstId
in interfaceTableItems.Ordered<E>
- Overrides:
isFirstId
in classEmptyTableItems<E>
- Parameters:
itemId
- item id- Returns:
true
if the item is first visible item,false
if not
-
isLastId
Description copied from interface:TableItems.Ordered
Tests if the item corresponding to the given item ID is the last item.- Specified by:
isLastId
in interfaceTableItems.Ordered<E>
- Overrides:
isLastId
in classEmptyTableItems<E>
- Parameters:
itemId
- item id- Returns:
true
if the item is last visible item in the,false
if not
-
sort
Description copied from interface:TableItems.Sortable
Sorts data.- Specified by:
sort
in interfaceTableItems.Sortable<E>
- Overrides:
sort
in classEmptyTableItems<E>
- Parameters:
propertyId
- id of propertyascending
- asc / desc flags
-
resetSortOrder
public void resetSortOrder()Description copied from interface:TableItems.Sortable
Resets sort order.- Specified by:
resetSortOrder
in interfaceTableItems.Sortable<E>
- Overrides:
resetSortOrder
in classEmptyTableItems<E>
-