public class CollectionPropertyContainerImpl<E extends Entity> extends CollectionContainerImpl<E> implements CollectionPropertyContainer<E>
CollectionContainer.CollectionChangeEvent<T extends Entity>, CollectionContainer.UnmuteEventsMode
InstanceContainer.ItemChangeEvent<T extends Entity>, InstanceContainer.ItemPropertyChangeEvent<T extends Entity>
Modifier and Type | Field and Description |
---|---|
protected InstanceContainer |
master |
protected java.lang.String |
property |
collection, idMap, sorter
entityMetaClass, events, item, listener, listenersEnabled, loader, view
Constructor and Description |
---|
CollectionPropertyContainerImpl(com.haulmont.chile.core.model.MetaClass metaClass,
InstanceContainer master,
java.lang.String property) |
Modifier and Type | Method and Description |
---|---|
java.util.List<E> |
getDisconnectedItems()
Same as
CollectionPropertyContainer.getMutableItems() but changes in the list are not reflected in the underlying property. |
InstanceContainer |
getMaster()
Returns the container holding the master entity.
|
protected com.haulmont.chile.core.model.MetaProperty |
getMasterProperty() |
java.util.List<E> |
getMutableItems()
Returns mutable list of contained entities.
|
java.lang.String |
getProperty()
Returns the name of the master entity property.
|
void |
setDisconnectedItems(java.util.Collection<E> entities)
Same as
CollectionContainer.setItems(Collection) but does not affect the underlying property. |
void |
setItems(java.util.Collection<E> entities)
Sets a collection of entities to the container.
|
protected void |
updateMaster() |
addCollectionChangeListener, attachListener, buildIdMap, clearItemIfNotExists, containsItem, detachListener, fireCollectionChanged, getItem, getItemIndex, getItemOrNull, getItems, getSorter, replaceItem, setItem, setSorter, toString, unmute
addItemChangeListener, addItemPropertyChangeListener, attachListener, detachListener, fireItemChanged, getEntityMetaClass, getItem, getItemOrNull, getLoader, getView, itemPropertyChanged, mute, setLoader, setView, unmute
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addCollectionChangeListener, containsItem, getItem, getItemIndex, getItemOrNull, getItems, getSorter, replaceItem, setSorter, unmute
addItemChangeListener, addItemPropertyChangeListener, getEntityMetaClass, getItem, getItemOrNull, getView, mute, setItem, setView, unmute
protected InstanceContainer master
protected java.lang.String property
public CollectionPropertyContainerImpl(com.haulmont.chile.core.model.MetaClass metaClass, InstanceContainer master, java.lang.String property)
public InstanceContainer getMaster()
Nested
public java.lang.String getProperty()
Nested
getProperty
in interface Nested
public java.util.List<E> getDisconnectedItems()
CollectionPropertyContainer
CollectionPropertyContainer.getMutableItems()
but changes in the list are not reflected in the underlying property.getDisconnectedItems
in interface CollectionPropertyContainer<E extends Entity>
public void setDisconnectedItems(@Nullable java.util.Collection<E> entities)
CollectionPropertyContainer
CollectionContainer.setItems(Collection)
but does not affect the underlying property.setDisconnectedItems
in interface CollectionPropertyContainer<E extends Entity>
public java.util.List<E> getMutableItems()
CollectionContainer
CollectionContainer.CollectionChangeEvent
.getMutableItems
in interface CollectionContainer<E extends Entity>
getMutableItems
in interface CollectionPropertyContainer<E extends Entity>
getMutableItems
in class CollectionContainerImpl<E extends Entity>
public void setItems(@Nullable java.util.Collection<E> entities)
CollectionContainer
setItems
in interface CollectionContainer<E extends Entity>
setItems
in class CollectionContainerImpl<E extends Entity>
protected void updateMaster()
protected com.haulmont.chile.core.model.MetaProperty getMasterProperty()