Package io.jmix.ui.component.data
Interface TableItems<I>
- Type Parameters:
I
- row item type
- All Superinterfaces:
DataUnit
- All Known Subinterfaces:
EntityTableItems<E>
,GroupTableItems<I>
,TableItems.Ordered<T>
,TableItems.Sortable<T>
,TreeTableItems<I>
- All Known Implementing Classes:
ContainerGroupTableItems
,ContainerTableItems
,ContainerTreeTableItems
,EmptyGroupTableItems
,EmptyTableItems
,EmptyTreeTableItems
A common interface for providing data for
Table
component.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
An event that is fired when item set is changed.static interface
Ordered table items.static class
An event that is fired when selected item is changed.static interface
Sortable table items.static class
An event that is fired when value of item property is changed.Nested classes/interfaces inherited from interface io.jmix.ui.component.data.DataUnit
DataUnit.StateChangeEvent
-
Method Summary
Modifier and TypeMethodDescriptionRegisters a new item set change listener.Registers a new selected item change listener.addValueChangeListener
(Consumer<TableItems.ValueChangeEvent<I>> listener) Registers a new value change listener.boolean
containsId
(Object itemId) Collection<?>
default I
getItems()
getItemValue
(Object itemId, MetaPropertyPath propertyId) Class<?>
int
size()
boolean
supportsProperty
(Object propertyId) void
updateItem
(I item) Update an item in the collection if it is already there.Methods inherited from interface io.jmix.ui.component.data.DataUnit
addStateChangeListener, getState
-
Method Details
-
getItemIds
Collection<?> getItemIds() -
getItem
-
getItemNN
-
getItemValue
-
size
int size() -
containsId
-
getType
-
supportsProperty
-
getItems
Collection<I> getItems()- Returns:
- unmodifiable collection of items
-
updateItem
Update an item in the collection if it is already there.- Parameters:
item
- the item to update
-
addValueChangeListener
Registers a new value change listener.- Parameters:
listener
- the listener to be added- Returns:
- a registration object for removing an event listener added to a source
-
addItemSetChangeListener
Registers a new item set change listener.- Parameters:
listener
- the listener to be added- Returns:
- a registration object for removing an event listener added to a source
-
addSelectedItemChangeListener
Subscription addSelectedItemChangeListener(Consumer<TableItems.SelectedItemChangeEvent<I>> listener) Registers a new selected item change listener.- Parameters:
listener
- the listener to be added- Returns:
- a registration object for removing an event listener added to a source
-