public class KeyValueContainerImpl extends InstanceContainerImpl<KeyValueEntity> implements KeyValueContainer
InstanceContainer.ItemChangeEvent<T extends Entity>, InstanceContainer.ItemPropertyChangeEvent<T extends Entity>
entityMetaClass, events, item, listener, listenersEnabled, loader, view
Constructor and Description |
---|
KeyValueContainerImpl() |
KeyValueContainerImpl(KeyValueMetaClass entityMetaClass) |
Modifier and Type | Method and Description |
---|---|
KeyValueContainer |
addProperty(java.lang.String name)
Adds a string property to the meta-class of this loader.
|
KeyValueContainer |
addProperty(java.lang.String name,
java.lang.Class aClass)
Adds a property of the given Java class to the meta-class of this loader.
|
KeyValueContainer |
addProperty(java.lang.String name,
com.haulmont.chile.core.datatypes.Datatype datatype)
Adds a property of the given datatype to the meta-class of this loader.
|
KeyValueMetaClass |
getEntityMetaClass()
Returns the meta-class of entities that can be stored in the container.
|
java.lang.String |
getIdName()
Returns the name of a property that represents the entity id.
|
KeyValueContainer |
setIdName(java.lang.String name)
Sets the name of a property that represents the entity id.
|
void |
setItem(KeyValueEntity item)
Sets the given entity instance to the container.
|
protected void |
updateEntityMetadata(KeyValueEntity entity) |
addItemChangeListener, addItemPropertyChangeListener, attachListener, detachListener, fireItemChanged, getItem, getItemOrNull, getLoader, getView, itemPropertyChanged, mute, setLoader, setView, toString, unmute
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addItemChangeListener, addItemPropertyChangeListener, getItem, getItemOrNull, getView, mute, setView, unmute
public KeyValueContainerImpl()
public KeyValueContainerImpl(KeyValueMetaClass entityMetaClass)
public KeyValueMetaClass getEntityMetaClass()
InstanceContainer
getEntityMetaClass
in interface InstanceContainer<KeyValueEntity>
getEntityMetaClass
in class InstanceContainerImpl<KeyValueEntity>
public KeyValueContainer setIdName(java.lang.String name)
KeyValueContainer
setIdName
in interface KeyValueContainer
public java.lang.String getIdName()
KeyValueContainer
getIdName
in interface KeyValueContainer
public KeyValueContainer addProperty(java.lang.String name)
KeyValueContainer
addProperty
in interface KeyValueContainer
public KeyValueContainer addProperty(java.lang.String name, java.lang.Class aClass)
KeyValueContainer
addProperty
in interface KeyValueContainer
public KeyValueContainer addProperty(java.lang.String name, com.haulmont.chile.core.datatypes.Datatype datatype)
KeyValueContainer
addProperty
in interface KeyValueContainer
public void setItem(@Nullable KeyValueEntity item)
InstanceContainer
setItem
in interface InstanceContainer<KeyValueEntity>
setItem
in class InstanceContainerImpl<KeyValueEntity>
protected void updateEntityMetadata(KeyValueEntity entity)