org.granite.client.tide.collections.javafx
Class JavaFXManagedPersistentMap<K,V>

java.lang.Object
  extended by org.granite.client.tide.collections.javafx.AbstractJavaFXManagedPersistentAssociation
      extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface org.granite.client.tide.collections.ManagedPersistentAssociation
ManagedPersistentAssociation.InitializationCallback, ManagedPersistentAssociation.InitializationListener
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
JavaFXManagedPersistentMap(Identifiable entity, String propertyName, LazyableCollection map)
           
 
Method Summary
 void addListener(javafx.beans.InvalidationListener listener)
           
 void addListener(javafx.collections.MapChangeListener<? super K,? super V> listener)
           
 void clear()
           
 LazyableCollection clone(boolean uninitialize)
           
 boolean containsKey(Object item)
           
 boolean containsValue(Object item)
           
 Set<Map.Entry<K,V>> entrySet()
           
 V get(Object key)
           
 LazyableCollection getCollection()
           
 Object getObject()
           
 boolean isEmpty()
           
 Set<K> keySet()
           
 V put(K key, V value)
           
 void putAll(Map<? extends K,? extends V> m)
           
 V remove(Object key)
           
 void removeListener(javafx.beans.InvalidationListener listener)
           
 void removeListener(javafx.collections.MapChangeListener<? super K,? super V> listener)
           
 int size()
           
 Collection<V> values()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.granite.client.tide.collections.ManagedPersistentAssociation
addListener, getOwner, getPropertyName, setServerSession, withInitialized
 
Methods inherited from interface org.granite.client.persistence.LazyableCollection
initialize, initializing, isInitialized, uninitialize
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

JavaFXManagedPersistentMap

public JavaFXManagedPersistentMap(Identifiable entity,
                                  String propertyName,
                                  LazyableCollection map)
Method Detail

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