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 the MapExpression.
V - The value type of the MapExpression.

public class MapExpressionHelperEx<K,V> extends MapListenerHelperEx<K,V>
A utility class to support notifications for an MapExpression.
  • Constructor Details

    • MapExpressionHelperEx

      public MapExpressionHelperEx(javafx.beans.value.ObservableMapValue<K,V> observableValue)
      Constructs a new MapExpressionHelperEx for the given source ObservableMapValue.
      Parameters:
      observableValue - The observableValue ObservableMap, which is used in change notifications.
  • Method Details

    • addListener

      public void addListener(javafx.beans.value.ChangeListener<? super javafx.collections.ObservableMap<K,V>> listener)
      Adds a new ChangeListener to this MapExpressionHelperEx. 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 ChangeListener to add.
    • fireValueChangedEvent

      public void fireValueChangedEvent()
      Fires notifications to all attached InvalidationListeners, ChangeListeners, and MapChangeListeners.
    • fireValueChangedEvent

      public void fireValueChangedEvent(javafx.collections.MapChangeListener.Change<? extends K,? extends V> change)
      Fires notifications to all attached InvalidationListeners, and MapChangeListeners.
      Overrides:
      fireValueChangedEvent in class MapListenerHelperEx<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 given ChangeListener from this MapChangeListener. If it was registered more than once, removes only one occurrence.
      Parameters:
      listener - The ChangeListener to remove.