Package io.jmix.flowui.model.impl
Class KeyValueContainerImpl
java.lang.Object
io.jmix.flowui.model.impl.InstanceContainerImpl<KeyValueEntity>
io.jmix.flowui.model.impl.KeyValueContainerImpl
- All Implemented Interfaces:
HasLoader,ItemPropertyChangeNotifier,InstanceContainer<KeyValueEntity>,KeyValueContainer
public class KeyValueContainerImpl
extends InstanceContainerImpl<KeyValueEntity>
implements KeyValueContainer
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.flowui.model.InstanceContainer
InstanceContainer.ItemChangeEvent<T>, InstanceContainer.ItemPropertyChangeEvent<T> -
Field Summary
Fields inherited from class io.jmix.flowui.model.impl.InstanceContainerImpl
entityMetaClass, events, fetchPlan, item, listener, listenersEnabled, loader, metadata -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddProperty(String name) Adds a string property to the meta-class of this loader.addProperty(String name, Datatype<?> datatype) Adds a property of the given datatype to the meta-class of this loader.addProperty(String name, Class<?> aClass) Adds a property of the given Java class to the meta-class of this loader.Creates newKeyValueEntityinstance initialized withidNameandinstanceMetaClassdefined for the data container.Returns the meta-class of entities that can be stored in the container.Returns the name of a property that represents the entity id.Sets the name of a property that represents the entity id.voidsetItem(KeyValueEntity item) Sets the given entity instance to the container.protected voidupdateEntityMetadata(KeyValueEntity entity) Methods inherited from class io.jmix.flowui.model.impl.InstanceContainerImpl
addItemChangeListener, addItemPropertyChangeListener, attachListener, detachListener, fireItemChanged, getFetchPlan, getItem, getItemOrNull, getLoader, itemPropertyChanged, mute, setFetchPlan, setLoader, setMetadata, toString, unmuteMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.jmix.flowui.model.InstanceContainer
addItemChangeListener, addItemPropertyChangeListener, getFetchPlan, getItem, getItemOrNull, getView, mute, setFetchPlan, setView, unmute
-
Constructor Details
-
KeyValueContainerImpl
public KeyValueContainerImpl() -
KeyValueContainerImpl
-
-
Method Details
-
getEntityMetaClass
Description copied from interface:InstanceContainerReturns the meta-class of entities that can be stored in the container.- Specified by:
getEntityMetaClassin interfaceInstanceContainer<KeyValueEntity>- Overrides:
getEntityMetaClassin classInstanceContainerImpl<KeyValueEntity>
-
setIdName
Description copied from interface:KeyValueContainerSets the name of a property that represents the entity id.- Specified by:
setIdNamein interfaceKeyValueContainer- Returns:
- this instance for chaining
-
getIdName
Description copied from interface:KeyValueContainerReturns the name of a property that represents the entity id.- Specified by:
getIdNamein interfaceKeyValueContainer
-
addProperty
Description copied from interface:KeyValueContainerAdds a string property to the meta-class of this loader.- Specified by:
addPropertyin interfaceKeyValueContainer- Returns:
- this instance for chaining
-
addProperty
Description copied from interface:KeyValueContainerAdds a property of the given Java class to the meta-class of this loader. The Java class can be an entity or a datatype.- Specified by:
addPropertyin interfaceKeyValueContainer- Returns:
- this instance for chaining
-
addProperty
Description copied from interface:KeyValueContainerAdds a property of the given datatype to the meta-class of this loader.- Specified by:
addPropertyin interfaceKeyValueContainer- Returns:
- this instance for chaining
-
createEntity
Description copied from interface:KeyValueContainerCreates newKeyValueEntityinstance initialized withidNameandinstanceMetaClassdefined for the data container.- Specified by:
createEntityin interfaceKeyValueContainer
-
setItem
Description copied from interface:InstanceContainerSets the given entity instance to the container.- Specified by:
setItemin interfaceInstanceContainer<KeyValueEntity>- Overrides:
setItemin classInstanceContainerImpl<KeyValueEntity>
-
updateEntityMetadata
-