Package io.jmix.flowui.model
Interface KeyValueContainer
- All Superinterfaces:
InstanceContainer<KeyValueEntity>
- All Known Subinterfaces:
KeyValueCollectionContainer
- All Known Implementing Classes:
KeyValueCollectionContainerImpl
,KeyValueContainerImpl
Container for a single
KeyValueEntity
instance.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.flowui.model.InstanceContainer
InstanceContainer.ItemChangeEvent<T>, InstanceContainer.ItemPropertyChangeEvent<T>
-
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.Returns the name of a property that represents the entity id.Sets the name of a property that represents the entity id.Methods inherited from interface io.jmix.flowui.model.InstanceContainer
addItemChangeListener, addItemPropertyChangeListener, getEntityMetaClass, getFetchPlan, getItem, getItemOrNull, getView, mute, setFetchPlan, setItem, setView, unmute
-
Method Details
-
setIdName
Sets the name of a property that represents the entity id.- Returns:
- this instance for chaining
-
getIdName
Returns the name of a property that represents the entity id. -
addProperty
Adds a string property to the meta-class of this loader.- Returns:
- this instance for chaining
-
addProperty
Adds a property of the given Java class to the meta-class of this loader. The Java class can be an entity or a datatype.- Returns:
- this instance for chaining
-
addProperty
Adds a property of the given datatype to the meta-class of this loader.- Returns:
- this instance for chaining
-