public class KeyValueCollectionContainerImpl extends CollectionContainerImpl<KeyValueEntity> implements KeyValueCollectionContainer
CollectionContainer.CollectionChangeEvent<T extends Entity>, CollectionContainer.UnmuteEventsMode
InstanceContainer.ItemChangeEvent<T extends Entity>, InstanceContainer.ItemPropertyChangeEvent<T extends Entity>
collection, idMap, sorter
entityMetaClass, events, item, listener, listenersEnabled, loader, view
Constructor and Description |
---|
KeyValueCollectionContainerImpl() |
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,
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.
|
java.util.List<KeyValueEntity> |
getMutableItems()
Returns mutable list of contained entities.
|
KeyValueContainer |
setIdName(java.lang.String name)
Sets the name of a property that represents the entity id.
|
void |
setItems(java.util.Collection<KeyValueEntity> entities)
Sets a collection of entities to the container.
|
java.lang.String |
toString() |
protected void |
updateEntityMetadata(KeyValueEntity entity) |
addCollectionChangeListener, addToCollection, attachListener, buildIdMap, clearItemIfNotExists, containsItem, detachListener, fireCollectionChanged, getItem, getItemIndex, getItemOrNull, getItems, getSorter, replaceInCollection, replaceItem, setItem, setSorter, unmute
addItemChangeListener, addItemPropertyChangeListener, attachListener, detachListener, fireItemChanged, 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, getItem, getItemOrNull, getView, mute, setItem, setView, unmute
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, Datatype datatype)
KeyValueContainer
addProperty
in interface KeyValueContainer
public void setItems(@Nullable java.util.Collection<KeyValueEntity> entities)
CollectionContainer
setItems
in interface CollectionContainer<KeyValueEntity>
setItems
in class CollectionContainerImpl<KeyValueEntity>
public java.util.List<KeyValueEntity> getMutableItems()
CollectionContainer
CollectionContainer.CollectionChangeEvent
.getMutableItems
in interface CollectionContainer<KeyValueEntity>
getMutableItems
in class CollectionContainerImpl<KeyValueEntity>
protected void updateEntityMetadata(KeyValueEntity entity)
public java.lang.String toString()
toString
in class CollectionContainerImpl<KeyValueEntity>