|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dishevelled.observable.AbstractMapDecorator<K,V>
org.dishevelled.observable.AbstractObservableMap<K,V>
org.dishevelled.observable.impl.ObservableMapImpl<K,V>
K - map key typeV - map value typepublic class ObservableMapImpl<K,V>
Observable map decorator that fires empty
vetoable map change events in preXxx methods and
empty map change events in postXxx methods.
Observable map listeners may query the source of the events to determine
what may or may not have changed due to the event.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.dishevelled.observable.AbstractObservableMap |
|---|
AbstractObservableMap.ObservableEntrySet, AbstractObservableMap.ObservableKeySet, AbstractObservableMap.ObservableValues |
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
ObservableMapImpl(Map<K,V> map)
Create a new observable decorator for the specified map. |
|
| Method Summary | |
|---|---|
protected void |
postClear()
Notify subclasses the clear method has just been
called on the wrapped map. |
protected void |
postEntrySetClear()
Notify subclasses the clear method has just been
called on the entrySet view for the wrapped map with the specified parameter. |
protected void |
postEntrySetIteratorRemove()
Notify subclasses the remove method has just been
called on the entrySet view iterator for the wrapped map. |
protected void |
postEntrySetRemove(Object value)
Notify subclasses the remove method has just been
called on the entrySet view for the wrapped map with the specified parameter. |
protected void |
postEntrySetRemoveAll(Collection<?> entrySet)
Notify subclasses the removeAll method has just been
called on the entrySet view for the wrapped map with the specified parameter. |
protected void |
postEntrySetRetainAll(Collection<?> entrySet)
Notify subclasses the clear method has just been
called on the entrySet view for the wrapped map with the specified parameter. |
protected void |
postKeySetClear()
Notify subclasses the clear method has just been
called on the keySet view for the wrapped map with the specified parameter. |
protected void |
postKeySetIteratorRemove()
Notify subclasses the remove method has just been
called on the keySet view iterator for the wrapped map. |
protected void |
postKeySetRemove(Object value)
Notify subclasses the remove method has just been
called on the keySet view for the wrapped map with the specified parameter. |
protected void |
postKeySetRemoveAll(Collection<?> keySet)
Notify subclasses the removeAll method has just been
called on the keySet view for the wrapped map with the specified parameter. |
protected void |
postKeySetRetainAll(Collection<?> keySet)
Notify subclasses the clear method has just been
called on the keySet view for the wrapped map with the specified parameter. |
protected void |
postMapEntrySetValue(V value)
Notify subclasses the setValue method has just been
called on a map entry from the entrySet view iterator for the wrapped map. |
protected void |
postPut(K key,
V value)
Notify subclasses the put method has just been
called on the wrapped map with the specified parameters. |
protected void |
postPutAll(Map<? extends K,? extends V> map)
Notify subclasses the putAll method has just been
called on the wrapped map with the specified parameter. |
protected void |
postRemove(Object key)
Notify subclasses the remove method has just been
called on the wrapped map with the specified parameter. |
protected void |
postValuesClear()
Notify subclasses the clear method has just been
called on the values view for the wrapped map with the specified parameter. |
protected void |
postValuesIteratorRemove()
Notify subclasses the remove method has just been
called on the values view iterator for the wrapped map. |
protected void |
postValuesRemove(Object value)
Notify subclasses the remove method has just been
called on the values view for the wrapped map with the specified parameter. |
protected void |
postValuesRemoveAll(Collection<?> values)
Notify subclasses the removeAll method has just been
called on the values view for the wrapped map with the specified parameter. |
protected void |
postValuesRetainAll(Collection<?> values)
Notify subclasses the clear method has just been
called on the values view for the wrapped map with the specified parameter. |
protected boolean |
preClear()
Notify subclasses the clear method is about to
be called on the wrapped map. |
protected boolean |
preEntrySetClear()
Notify subclasses the clear method is about to
be called on the entrySet view for the wrapped map. |
protected boolean |
preEntrySetIteratorRemove()
Notify subclasses the remove method is about to
be called on the entrySet view iterator for the wrapped map. |
protected boolean |
preEntrySetRemove(Object value)
Notify subclasses the remove method is about to
be called on the entrySet view for the wrapped map. |
protected boolean |
preEntrySetRemoveAll(Collection<?> entrySet)
Notify subclasses the removeAll method is about to
be called on the entrySet view for the wrapped map. |
protected boolean |
preEntrySetRetainAll(Collection<?> entrySet)
Notify subclasses the retainAll method is about to
be called on the entrySet view for the wrapped map. |
protected boolean |
preKeySetClear()
Notify subclasses the clear method is about to
be called on the keySet view for the wrapped map. |
protected boolean |
preKeySetIteratorRemove()
Notify subclasses the remove method is about to
be called on the keySet view iterator for the wrapped map. |
protected boolean |
preKeySetRemove(Object value)
Notify subclasses the remove method is about to
be called on the keySet view for the wrapped map. |
protected boolean |
preKeySetRemoveAll(Collection<?> keySet)
Notify subclasses the removeAll method is about to
be called on the keySet view for the wrapped map. |
protected boolean |
preKeySetRetainAll(Collection<?> keySet)
Notify subclasses the retainAll method is about to
be called on the keySet view for the wrapped map. |
protected boolean |
preMapEntrySetValue(V value)
Notify subclasses the setValue method is about to
be called on a map entry from the entrySet view iterator for the wrapped map. |
protected boolean |
prePut(K key,
V value)
Notify subclasses the put method is about to
be called on the wrapped map with the specified parameters. |
protected boolean |
prePutAll(Map<? extends K,? extends V> map)
Notify subclasses the putAll method is about to
be called on the wrapped map with the specified parameter. |
protected boolean |
preRemove(Object key)
Notify subclasses the remove method is about to
be called on the wrapped map with the specified parameter. |
protected boolean |
preValuesClear()
Notify subclasses the clear method is about to
be called on the values view for the wrapped map. |
protected boolean |
preValuesIteratorRemove()
Notify subclasses the remove method is about to
be called on the values view iterator for the wrapped map. |
protected boolean |
preValuesRemove(Object value)
Notify subclasses the remove method is about to
be called on the values view for the wrapped map. |
protected boolean |
preValuesRemoveAll(Collection<?> values)
Notify subclasses the removeAll method is about to
be called on the values view for the wrapped map. |
protected boolean |
preValuesRetainAll(Collection<?> values)
Notify subclasses the retainAll method is about to
be called on the values view for the wrapped map. |
| Methods inherited from class org.dishevelled.observable.AbstractObservableMap |
|---|
addMapChangeListener, addVetoableMapChangeListener, clear, entrySet, fireMapChanged, fireMapChanged, fireMapWillChange, fireMapWillChange, getMapChangeListenerCount, getMapChangeListeners, getObservableMapChangeSupport, getVetoableMapChangeListenerCount, getVetoableMapChangeListeners, keySet, put, putAll, remove, removeMapChangeListener, removeVetoableMapChangeListener, values |
| Methods inherited from class org.dishevelled.observable.AbstractMapDecorator |
|---|
containsKey, containsValue, equals, get, getMap, hashCode, isEmpty, size |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
containsKey, containsValue, equals, get, hashCode, isEmpty, size |
| Constructor Detail |
|---|
public ObservableMapImpl(Map<K,V> map)
map - map to decorate, must not be null| Method Detail |
|---|
protected boolean preClear()
clear method is about to
be called on the wrapped map.
Return true to proceed with the change.
preClear in class AbstractObservableMap<K,V>protected void postClear()
clear method has just been
called on the wrapped map.
postClear in class AbstractObservableMap<K,V>
protected boolean prePut(K key,
V value)
put method is about to
be called on the wrapped map with the specified parameters.
Return true to proceed with the change.
prePut in class AbstractObservableMap<K,V>key - put method key parametervalue - put method value parameter
protected void postPut(K key,
V value)
put method has just been
called on the wrapped map with the specified parameters.
postPut in class AbstractObservableMap<K,V>key - put method key parametervalue - put method value parameterprotected boolean prePutAll(Map<? extends K,? extends V> map)
putAll method is about to
be called on the wrapped map with the specified parameter.
Return true to proceed with the change.
prePutAll in class AbstractObservableMap<K,V>map - putAll method parameter
protected void postPutAll(Map<? extends K,? extends V> map)
putAll method has just been
called on the wrapped map with the specified parameter.
postPutAll in class AbstractObservableMap<K,V>map - putAll method parameterprotected boolean preRemove(Object key)
remove method is about to
be called on the wrapped map with the specified parameter.
Return true to proceed with the change.
preRemove in class AbstractObservableMap<K,V>key - remove method parameter
protected void postRemove(Object key)
remove method has just been
called on the wrapped map with the specified parameter.
postRemove in class AbstractObservableMap<K,V>key - remove method parameterprotected boolean preValuesClear()
clear method is about to
be called on the values view for the wrapped map.
Return true to proceed with the change.
preValuesClear in class AbstractObservableMap<K,V>protected void postValuesClear()
clear method has just been
called on the values view for the wrapped map with the specified parameter.
postValuesClear in class AbstractObservableMap<K,V>protected boolean preValuesRemove(Object value)
remove method is about to
be called on the values view for the wrapped map.
Return true to proceed with the change.
preValuesRemove in class AbstractObservableMap<K,V>value - remove method parameter
protected void postValuesRemove(Object value)
remove method has just been
called on the values view for the wrapped map with the specified parameter.
postValuesRemove in class AbstractObservableMap<K,V>value - remove method parameterprotected boolean preValuesRemoveAll(Collection<?> values)
removeAll method is about to
be called on the values view for the wrapped map.
Return true to proceed with the change.
preValuesRemoveAll in class AbstractObservableMap<K,V>values - removeAll method parameter
protected void postValuesRemoveAll(Collection<?> values)
removeAll method has just been
called on the values view for the wrapped map with the specified parameter.
postValuesRemoveAll in class AbstractObservableMap<K,V>values - removeAll method parameterprotected boolean preValuesRetainAll(Collection<?> values)
retainAll method is about to
be called on the values view for the wrapped map.
Return true to proceed with the change.
preValuesRetainAll in class AbstractObservableMap<K,V>values - retainAll method parameter
protected void postValuesRetainAll(Collection<?> values)
clear method has just been
called on the values view for the wrapped map with the specified parameter.
postValuesRetainAll in class AbstractObservableMap<K,V>values - retainAll method parameterprotected boolean preValuesIteratorRemove()
remove method is about to
be called on the values view iterator for the wrapped map.
Return true to proceed with the change.
preValuesIteratorRemove in class AbstractObservableMap<K,V>protected void postValuesIteratorRemove()
remove method has just been
called on the values view iterator for the wrapped map.
postValuesIteratorRemove in class AbstractObservableMap<K,V>protected boolean preKeySetClear()
clear method is about to
be called on the keySet view for the wrapped map.
Return true to proceed with the change.
preKeySetClear in class AbstractObservableMap<K,V>protected void postKeySetClear()
clear method has just been
called on the keySet view for the wrapped map with the specified parameter.
postKeySetClear in class AbstractObservableMap<K,V>protected boolean preKeySetRemove(Object value)
remove method is about to
be called on the keySet view for the wrapped map.
Return true to proceed with the change.
preKeySetRemove in class AbstractObservableMap<K,V>value - remove method parameter
protected void postKeySetRemove(Object value)
remove method has just been
called on the keySet view for the wrapped map with the specified parameter.
postKeySetRemove in class AbstractObservableMap<K,V>value - remove method parameterprotected boolean preKeySetRemoveAll(Collection<?> keySet)
removeAll method is about to
be called on the keySet view for the wrapped map.
Return true to proceed with the change.
preKeySetRemoveAll in class AbstractObservableMap<K,V>keySet - removeAll method parameter
protected void postKeySetRemoveAll(Collection<?> keySet)
removeAll method has just been
called on the keySet view for the wrapped map with the specified parameter.
postKeySetRemoveAll in class AbstractObservableMap<K,V>keySet - removeAll method parameterprotected boolean preKeySetRetainAll(Collection<?> keySet)
retainAll method is about to
be called on the keySet view for the wrapped map.
Return true to proceed with the change.
preKeySetRetainAll in class AbstractObservableMap<K,V>keySet - retainAll method parameter
protected void postKeySetRetainAll(Collection<?> keySet)
clear method has just been
called on the keySet view for the wrapped map with the specified parameter.
postKeySetRetainAll in class AbstractObservableMap<K,V>keySet - retainAll method parameterprotected boolean preKeySetIteratorRemove()
remove method is about to
be called on the keySet view iterator for the wrapped map.
Return true to proceed with the change.
preKeySetIteratorRemove in class AbstractObservableMap<K,V>protected void postKeySetIteratorRemove()
remove method has just been
called on the keySet view iterator for the wrapped map.
postKeySetIteratorRemove in class AbstractObservableMap<K,V>protected boolean preEntrySetClear()
clear method is about to
be called on the entrySet view for the wrapped map.
Return true to proceed with the change.
preEntrySetClear in class AbstractObservableMap<K,V>protected void postEntrySetClear()
clear method has just been
called on the entrySet view for the wrapped map with the specified parameter.
postEntrySetClear in class AbstractObservableMap<K,V>protected boolean preEntrySetRemove(Object value)
remove method is about to
be called on the entrySet view for the wrapped map.
Return true to proceed with the change.
preEntrySetRemove in class AbstractObservableMap<K,V>value - remove method parameter
protected void postEntrySetRemove(Object value)
remove method has just been
called on the entrySet view for the wrapped map with the specified parameter.
postEntrySetRemove in class AbstractObservableMap<K,V>value - remove method parameterprotected boolean preEntrySetRemoveAll(Collection<?> entrySet)
removeAll method is about to
be called on the entrySet view for the wrapped map.
Return true to proceed with the change.
preEntrySetRemoveAll in class AbstractObservableMap<K,V>entrySet - removeAll method parameter
protected void postEntrySetRemoveAll(Collection<?> entrySet)
removeAll method has just been
called on the entrySet view for the wrapped map with the specified parameter.
postEntrySetRemoveAll in class AbstractObservableMap<K,V>entrySet - removeAll method parameterprotected boolean preEntrySetRetainAll(Collection<?> entrySet)
retainAll method is about to
be called on the entrySet view for the wrapped map.
Return true to proceed with the change.
preEntrySetRetainAll in class AbstractObservableMap<K,V>entrySet - retainAll method parameter
protected void postEntrySetRetainAll(Collection<?> entrySet)
clear method has just been
called on the entrySet view for the wrapped map with the specified parameter.
postEntrySetRetainAll in class AbstractObservableMap<K,V>entrySet - retainAll method parameterprotected boolean preEntrySetIteratorRemove()
remove method is about to
be called on the entrySet view iterator for the wrapped map.
Return true to proceed with the change.
preEntrySetIteratorRemove in class AbstractObservableMap<K,V>protected void postEntrySetIteratorRemove()
remove method has just been
called on the entrySet view iterator for the wrapped map.
postEntrySetIteratorRemove in class AbstractObservableMap<K,V>protected boolean preMapEntrySetValue(V value)
setValue method is about to
be called on a map entry from the entrySet view iterator for the wrapped map.
Return true to proceed with the change.
preMapEntrySetValue in class AbstractObservableMap<K,V>value - setValue method parameter
protected void postMapEntrySetValue(V value)
setValue method has just been
called on a map entry from the entrySet view iterator for the wrapped map.
postMapEntrySetValue in class AbstractObservableMap<K,V>value - setValue method parameter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||