Package io.jmix.ui.model
Interface CollectionPropertyContainer<E>
- All Superinterfaces:
CollectionContainer<E>
,InstanceContainer<E>
,Nested
- All Known Implementing Classes:
CollectionPropertyContainerImpl
Container that holds a collection of entity instances which is a collection property of another entity.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.ui.model.CollectionContainer
CollectionContainer.CollectionChangeEvent<T>, CollectionContainer.UnmuteEventsMode
Nested classes/interfaces inherited from interface io.jmix.ui.model.InstanceContainer
InstanceContainer.ItemChangeEvent<T>, InstanceContainer.ItemPropertyChangeEvent<T>
-
Method Summary
Modifier and TypeMethodDescriptionSame asgetMutableItems()
but changes in the list are not reflected in the underlying property.Returns mutable list of entities.void
setDisconnectedItems
(Collection<E> entities) Same asCollectionContainer.setItems(Collection)
but does not affect the underlying property.Methods inherited from interface io.jmix.ui.model.CollectionContainer
addCollectionChangeListener, containsItem, getItem, getItemIndex, getItemOrNull, getItems, getSorter, replaceItem, setItems, setSorter, unmute
Methods inherited from interface io.jmix.ui.model.InstanceContainer
addItemChangeListener, addItemPropertyChangeListener, getEntityMetaClass, getFetchPlan, getItem, getItemOrNull, getView, mute, setFetchPlan, setItem, setView, unmute
Methods inherited from interface io.jmix.ui.model.Nested
getMaster, getProperty
-
Method Details
-
getMutableItems
Returns mutable list of entities. Changes in the list are reflected in the underlying property.- Specified by:
getMutableItems
in interfaceCollectionContainer<E>
-
getDisconnectedItems
Same asgetMutableItems()
but changes in the list are not reflected in the underlying property. -
setDisconnectedItems
Same asCollectionContainer.setItems(Collection)
but does not affect the underlying property.
-