Package io.jmix.ui.component.data.table
Class EmptyTreeTableItems<E>
java.lang.Object
io.jmix.ui.component.data.table.EmptyTableItems<E>
io.jmix.ui.component.data.table.EmptyTreeTableItems<E>
- All Implemented Interfaces:
DataUnit,EmptyDataUnit,EntityDataUnit,EntityTableItems<E>,TableItems<E>,TableItems.Ordered<E>,TableItems.Sortable<E>,TreeTableItems<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 TypeMethodDescriptionCollection<?>getChildren(Object itemId) Get children IDs for item with the given IDProperty of entity which forms the hierarchyGet parent ID for item with the given IDCollection<?>Identifiers of all root itemsbooleanhasChildren(Object itemId) True if item with the given ID has childrenbooleanTests 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.booleanTrue if item with the given ID is a root itemnextItemId(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
-
EmptyTreeTableItems
-
-
Method Details
-
getHierarchyPropertyName
Description copied from interface:TreeTableItemsProperty of entity which forms the hierarchy- Specified by:
getHierarchyPropertyNamein interfaceTreeTableItems<E>
-
getRootItemIds
Description copied from interface:TreeTableItemsIdentifiers of all root items- Specified by:
getRootItemIdsin interfaceTreeTableItems<E>
-
getParent
Description copied from interface:TreeTableItemsGet parent ID for item with the given ID- Specified by:
getParentin interfaceTreeTableItems<E>
-
getChildren
Description copied from interface:TreeTableItemsGet children IDs for item with the given ID- Specified by:
getChildrenin interfaceTreeTableItems<E>
-
isRoot
Description copied from interface:TreeTableItemsTrue if item with the given ID is a root item- Specified by:
isRootin interfaceTreeTableItems<E>
-
hasChildren
Description copied from interface:TreeTableItemsTrue if item with the given ID has children- Specified by:
hasChildrenin interfaceTreeTableItems<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>
-