Package io.jmix.ui.component.data
Interface TableItems.Ordered<T>
- Type Parameters:
T- row item type
- All Superinterfaces:
DataUnit,TableItems<T>
- All Known Subinterfaces:
GroupTableItems<I>,TableItems.Sortable<T>,TreeTableItems<I>
- All Known Implementing Classes:
ContainerGroupTableItems,ContainerTableItems,ContainerTreeTableItems,EmptyGroupTableItems,EmptyTableItems,EmptyTreeTableItems
- Enclosing interface:
- TableItems<I>
Ordered table items.
-
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> -
Method Summary
Modifier and TypeMethodDescriptionbooleanTests 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.Methods 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, updateItem
-
Method Details
-
nextItemId
Gets the ID of the item following the Item that corresponds toitemId.- Parameters:
itemId- item id- Returns:
- ID of the next visible Item or
null
-
prevItemId
Gets the ID of the item preceding the item that corresponds toitemId.- Parameters:
itemId- item id- Returns:
- ID of the previous visible item or
null
-
firstItemId
- Returns:
- ID of the first visible item
-
lastItemId
- Returns:
- ID of the last visible item
-
isFirstId
Tests if the Item corresponding to the given Item ID is the first item.- Parameters:
itemId- item id- Returns:
trueif the item is first visible item,falseif not
-
isLastId
Tests if the item corresponding to the given item ID is the last item.- Parameters:
itemId- item id- Returns:
trueif the item is last visible item in the,falseif not
-