Class SetMultimapExpressionHelper<K,V>
java.lang.Object
org.eclipse.gef.common.collections.SetMultimapListenerHelper<K,V>
org.eclipse.gef.common.beans.binding.SetMultimapExpressionHelper<K,V>
- Type Parameters:
K
- The key type of theObservableSetMultimap
.V
- The value type of theObservableSetMultimap
.
A utility class to support change notifications for an
ObservableSetMultimap
.-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.gef.common.collections.SetMultimapListenerHelper
SetMultimapListenerHelper.AtomicChange<K,
V>, SetMultimapListenerHelper.ElementarySubChange<K, V> -
Constructor Summary
ConstructorDescriptionSetMultimapExpressionHelper
(ObservableSetMultimapValue<K, V> observableValue) Constructs a newSetMultimapExpressionHelper
for the given sourceObservableSetMultimapValue
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(javafx.beans.value.ChangeListener<? super ObservableSetMultimap<K, V>> listener) Adds a newChangeListener
to thisSetMultimapExpressionHelper
.void
Fires notifications to all attachedInvalidationListeners
,ChangeListeners
, andSetMultimapChangeListeners
.void
fireValueChangedEvent
(SetMultimapChangeListener.Change<? extends K, ? extends V> change) Fires notifications to all attachedInvalidationListeners
andSetMultimapChangeListeners
.void
removeListener
(javafx.beans.value.ChangeListener<? super ObservableSetMultimap<K, V>> listener) Removes the givenChangeListener
from thisSetMultimapChangeListener
.Methods inherited from class org.eclipse.gef.common.collections.SetMultimapListenerHelper
addListener, addListener, getSource, notifyInvalidationListeners, notifySetMultimapChangeListeners, removeListener, removeListener
-
Constructor Details
-
SetMultimapExpressionHelper
Constructs a newSetMultimapExpressionHelper
for the given sourceObservableSetMultimapValue
.- Parameters:
observableValue
- The observableValueObservableSetMultimap
, which is used in change notifications.
-
-
Method Details
-
addListener
public void addListener(javafx.beans.value.ChangeListener<? super ObservableSetMultimap<K, V>> listener) Adds a newChangeListener
to thisSetMultimapExpressionHelper
. If the same listener is added more than once, it will be registered more than once and will receive multiple change events.- Parameters:
listener
- The listener to add.
-
fireValueChangedEvent
public void fireValueChangedEvent()Fires notifications to all attachedInvalidationListeners
,ChangeListeners
, andSetMultimapChangeListeners
. -
fireValueChangedEvent
Fires notifications to all attachedInvalidationListeners
andSetMultimapChangeListeners
.- Overrides:
fireValueChangedEvent
in classSetMultimapListenerHelper<K,
V> - Parameters:
change
- The change that needs to be propagated.
-
removeListener
public void removeListener(javafx.beans.value.ChangeListener<? super ObservableSetMultimap<K, V>> listener) Removes the givenChangeListener
from thisSetMultimapChangeListener
. If it was registered more than once, removes only one occurrence.- Parameters:
listener
- TheChangeListener
to remove.
-