public class KeyValueCollectionContainerImpl extends CollectionContainerImpl<KeyValueEntity> implements KeyValueCollectionContainer
CollectionContainer.CollectionChangeEvent<T extends Entity>, CollectionContainer.UnmuteEventsModeInstanceContainer.ItemChangeEvent<T extends Entity>, InstanceContainer.ItemPropertyChangeEvent<T extends Entity>collection, idMap, sorterentityMetaClass, 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, unmuteaddItemChangeListener, addItemPropertyChangeListener, attachListener, detachListener, fireItemChanged, getItem, getItemOrNull, getLoader, getView, itemPropertyChanged, mute, setLoader, setView, unmuteclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddCollectionChangeListener, containsItem, getItem, getItemIndex, getItemOrNull, getItems, getSorter, replaceItem, setSorter, unmuteaddItemChangeListener, addItemPropertyChangeListener, getItem, getItemOrNull, getView, mute, setItem, setView, unmutepublic KeyValueMetaClass getEntityMetaClass()
InstanceContainergetEntityMetaClass in interface InstanceContainer<KeyValueEntity>getEntityMetaClass in class InstanceContainerImpl<KeyValueEntity>public KeyValueContainer setIdName(java.lang.String name)
KeyValueContainersetIdName in interface KeyValueContainerpublic java.lang.String getIdName()
KeyValueContainergetIdName in interface KeyValueContainerpublic KeyValueContainer addProperty(java.lang.String name)
KeyValueContaineraddProperty in interface KeyValueContainerpublic KeyValueContainer addProperty(java.lang.String name, java.lang.Class aClass)
KeyValueContaineraddProperty in interface KeyValueContainerpublic KeyValueContainer addProperty(java.lang.String name, Datatype datatype)
KeyValueContaineraddProperty in interface KeyValueContainerpublic void setItems(@Nullable
java.util.Collection<KeyValueEntity> entities)
CollectionContainersetItems in interface CollectionContainer<KeyValueEntity>setItems in class CollectionContainerImpl<KeyValueEntity>public java.util.List<KeyValueEntity> getMutableItems()
CollectionContainerCollectionContainer.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>