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.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 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 itemsboolean
hasChildren
(Object itemId) True if item with the given ID has childrenboolean
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.boolean
True 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
.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
-
EmptyTreeTableItems
-
-
Method Details
-
getHierarchyPropertyName
Description copied from interface:TreeTableItems
Property of entity which forms the hierarchy- Specified by:
getHierarchyPropertyName
in interfaceTreeTableItems<E>
-
getRootItemIds
Description copied from interface:TreeTableItems
Identifiers of all root items- Specified by:
getRootItemIds
in interfaceTreeTableItems<E>
-
getParent
Description copied from interface:TreeTableItems
Get parent ID for item with the given ID- Specified by:
getParent
in interfaceTreeTableItems<E>
-
getChildren
Description copied from interface:TreeTableItems
Get children IDs for item with the given ID- Specified by:
getChildren
in interfaceTreeTableItems<E>
-
isRoot
Description copied from interface:TreeTableItems
True if item with the given ID is a root item- Specified by:
isRoot
in interfaceTreeTableItems<E>
-
hasChildren
Description copied from interface:TreeTableItems
True if item with the given ID has children- Specified by:
hasChildren
in interfaceTreeTableItems<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>
-