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
.
public class SetMultimapExpressionHelper<K,V> extends SetMultimapListenerHelper<K,V>
A utility class to support change notifications for anObservableSetMultimap
.
-
-
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
Constructors Constructor Description SetMultimapExpressionHelper(ObservableSetMultimapValue<K,V> observableValue)
Constructs a newSetMultimapExpressionHelper
for the given sourceObservableSetMultimapValue
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(javafx.beans.value.ChangeListener<? super ObservableSetMultimap<K,V>> listener)
Adds a newChangeListener
to thisSetMultimapExpressionHelper
.void
fireValueChangedEvent()
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 Detail
-
SetMultimapExpressionHelper
public SetMultimapExpressionHelper(ObservableSetMultimapValue<K,V> observableValue)
Constructs a newSetMultimapExpressionHelper
for the given sourceObservableSetMultimapValue
.- Parameters:
observableValue
- The observableValueObservableSetMultimap
, which is used in change notifications.
-
-
Method Detail
-
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
public void fireValueChangedEvent(SetMultimapChangeListener.Change<? extends K,? extends V> change)
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.
-
-