Package io.jmix.flowui.data
Interface EntityItems<E>
- All Superinterfaces:
DataUnit
,EntityDataUnit
- All Known Implementing Classes:
ContainerDataProvider
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Event that is fired then item collection is changed.Nested classes/interfaces inherited from interface io.jmix.flowui.data.DataUnit
DataUnit.StateChangeEvent
-
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.Registration
addItemsChangeListener
(Consumer<EntityItems.ItemsChangeEvent<E>> listener) Adds an items change listener.boolean
containsItem
(E item) void
refresh()
Refreshes the source moving it to theBindingState.ACTIVE
statevoid
setSelectedItem
(E item) Set current item in the source.void
updateItem
(E item) Update an item in the collection if it is already there.Methods inherited from interface io.jmix.flowui.data.DataUnit
addStateChangeListener, getState
Methods inherited from interface io.jmix.flowui.data.EntityDataUnit
getEntityMetaClass
-
Method Details
-
setSelectedItem
Set current item in the source.- Parameters:
item
- the item to set
-
containsItem
- Returns:
- true if the underlying collection contains an item with the specified ID
-
updateItem
Update an item in the collection if it is already there. -
refresh
void refresh()Refreshes the source moving it to theBindingState.ACTIVE
state -
addItemsChangeListener
com.vaadin.flow.shared.Registration addItemsChangeListener(Consumer<EntityItems.ItemsChangeEvent<E>> listener) Adds an items change listener. The listener is called when the item collection is changed.- Parameters:
listener
- a listener to register, not null- Returns:
- a registration for the listener
-