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 newSetMultimapExpressionHelperfor the given sourceObservableSetMultimapValue.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(javafx.beans.value.ChangeListener<? super ObservableSetMultimap<K,V>> listener)Adds a newChangeListenerto thisSetMultimapExpressionHelper.voidfireValueChangedEvent()Fires notifications to all attachedInvalidationListeners,ChangeListeners, andSetMultimapChangeListeners.voidfireValueChangedEvent(SetMultimapChangeListener.Change<? extends K,? extends V> change)Fires notifications to all attachedInvalidationListenersandSetMultimapChangeListeners.voidremoveListener(javafx.beans.value.ChangeListener<? super ObservableSetMultimap<K,V>> listener)Removes the givenChangeListenerfrom 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 newSetMultimapExpressionHelperfor 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 newChangeListenerto 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 attachedInvalidationListenersandSetMultimapChangeListeners.- Overrides:
fireValueChangedEventin 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 givenChangeListenerfrom thisSetMultimapChangeListener. If it was registered more than once, removes only one occurrence.- Parameters:
listener- TheChangeListenerto remove.
-
-