Class MapExpressionHelperEx<K,V>
- java.lang.Object
-
- org.eclipse.gef.common.collections.MapListenerHelperEx<K,V>
-
- org.eclipse.gef.common.beans.binding.MapExpressionHelperEx<K,V>
-
- Type Parameters:
K
- The key type of theMapExpression
.V
- The value type of theMapExpression
.
public class MapExpressionHelperEx<K,V> extends MapListenerHelperEx<K,V>
A utility class to support notifications for anMapExpression
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.gef.common.collections.MapListenerHelperEx
MapListenerHelperEx.AtomicChange<K,V>
-
-
Constructor Summary
Constructors Constructor Description MapExpressionHelperEx(javafx.beans.value.ObservableMapValue<K,V> observableValue)
Constructs a newMapExpressionHelperEx
for the given sourceObservableMapValue
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(javafx.beans.value.ChangeListener<? super javafx.collections.ObservableMap<K,V>> listener)
Adds a newChangeListener
to thisMapExpressionHelperEx
.void
fireValueChangedEvent()
Fires notifications to all attachedInvalidationListeners
,ChangeListeners
, andMapChangeListeners
.void
fireValueChangedEvent(javafx.collections.MapChangeListener.Change<? extends K,? extends V> change)
Fires notifications to all attachedInvalidationListeners
, andMapChangeListeners
.void
removeListener(javafx.beans.value.ChangeListener<? super javafx.collections.ObservableMap<K,V>> listener)
Removes the givenChangeListener
from thisMapChangeListener
.-
Methods inherited from class org.eclipse.gef.common.collections.MapListenerHelperEx
addListener, addListener, getSource, notifyInvalidationListeners, notifyMapChangeListeners, removeListener, removeListener
-
-
-
-
Constructor Detail
-
MapExpressionHelperEx
public MapExpressionHelperEx(javafx.beans.value.ObservableMapValue<K,V> observableValue)
Constructs a newMapExpressionHelperEx
for the given sourceObservableMapValue
.- Parameters:
observableValue
- The observableValueObservableMap
, which is used in change notifications.
-
-
Method Detail
-
addListener
public void addListener(javafx.beans.value.ChangeListener<? super javafx.collections.ObservableMap<K,V>> listener)
Adds a newChangeListener
to thisMapExpressionHelperEx
. If the same listener is added more than once, it will be registered more than once and will receive multiple change events.- Parameters:
listener
- TheChangeListener
to add.
-
fireValueChangedEvent
public void fireValueChangedEvent()
Fires notifications to all attachedInvalidationListeners
,ChangeListeners
, andMapChangeListeners
.
-
fireValueChangedEvent
public void fireValueChangedEvent(javafx.collections.MapChangeListener.Change<? extends K,? extends V> change)
Fires notifications to all attachedInvalidationListeners
, andMapChangeListeners
.- Overrides:
fireValueChangedEvent
in classMapListenerHelperEx<K,V>
- Parameters:
change
- The change that needs to be propagated.
-
removeListener
public void removeListener(javafx.beans.value.ChangeListener<? super javafx.collections.ObservableMap<K,V>> listener)
Removes the givenChangeListener
from thisMapChangeListener
. If it was registered more than once, removes only one occurrence.- Parameters:
listener
- TheChangeListener
to remove.
-
-