org.granite.client.tide.collections.javafx
Class JavaFXManagedPersistentMap<K,V>
java.lang.Object
org.granite.client.tide.collections.javafx.AbstractJavaFXManagedPersistentAssociation
org.granite.client.tide.collections.javafx.JavaFXManagedPersistentMap<K,V>
- All Implemented Interfaces:
- Map<K,V>, javafx.beans.Observable, javafx.collections.ObservableMap<K,V>, LazyableCollection, ManagedPersistentAssociation, ManagedPersistentMap<K,V>, Wrapper, PropertyHolder
public class JavaFXManagedPersistentMap<K,V>
- extends AbstractJavaFXManagedPersistentAssociation
- implements javafx.collections.ObservableMap<K,V>, ManagedPersistentMap<K,V>
Internal implementation of persistent collection handling automatic lazy loading.
Used for wrapping persistent collections received from the server.
Should not be used directly.
- Author:
- William DRAI
| Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
| Methods inherited from class org.granite.client.tide.collections.javafx.AbstractJavaFXManagedPersistentAssociation |
addListener, checkForRead, checkForRead, checkForWrite, equals, getOwner, getPropertyName, getServerSession, getWrappedObject, hashCode, initialize, initializing, isInitialized, isInitializing, propertyResultHandler, removeListener, setProperty, setServerSession, toString, uninitialize, withInitialized |
JavaFXManagedPersistentMap
public JavaFXManagedPersistentMap(Identifiable entity,
String propertyName,
LazyableCollection map)
getObject
public Object getObject()
- Specified by:
getObject in interface PropertyHolder
getCollection
public LazyableCollection getCollection()
- Specified by:
getCollection in interface ManagedPersistentAssociation
size
public int size()
- Specified by:
size in interface Map<K,V>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface Map<K,V>
clear
public void clear()
- Specified by:
clear in interface Map<K,V>
get
public V get(Object key)
- Specified by:
get in interface Map<K,V>
containsKey
public boolean containsKey(Object item)
- Specified by:
containsKey in interface Map<K,V>
containsValue
public boolean containsValue(Object item)
- Specified by:
containsValue in interface Map<K,V>
keySet
public Set<K> keySet()
- Specified by:
keySet in interface Map<K,V>
values
public Collection<V> values()
- Specified by:
values in interface Map<K,V>
entrySet
public Set<Map.Entry<K,V>> entrySet()
- Specified by:
entrySet in interface Map<K,V>
put
public V put(K key,
V value)
- Specified by:
put in interface Map<K,V>
putAll
public void putAll(Map<? extends K,? extends V> m)
- Specified by:
putAll in interface Map<K,V>
remove
public V remove(Object key)
- Specified by:
remove in interface Map<K,V>
addListener
public void addListener(javafx.beans.InvalidationListener listener)
- Specified by:
addListener in interface javafx.beans.Observable
addListener
public void addListener(javafx.collections.MapChangeListener<? super K,? super V> listener)
- Specified by:
addListener in interface javafx.collections.ObservableMap<K,V>
removeListener
public void removeListener(javafx.beans.InvalidationListener listener)
- Specified by:
removeListener in interface javafx.beans.Observable
removeListener
public void removeListener(javafx.collections.MapChangeListener<? super K,? super V> listener)
- Specified by:
removeListener in interface javafx.collections.ObservableMap<K,V>
clone
public LazyableCollection clone(boolean uninitialize)
- Specified by:
clone in interface LazyableCollection