K
- The key type of the MapExpression
.V
- The value type of the MapExpression
.public class MapExpressionHelperEx<K,V> extends MapListenerHelperEx<K,V>
MapExpression
.MapListenerHelperEx.AtomicChange<K,V>
Constructor and Description |
---|
MapExpressionHelperEx(javafx.beans.value.ObservableMapValue<K,V> observableValue)
Constructs a new
MapExpressionHelperEx for the given source
ObservableMapValue . |
Modifier and Type | Method and Description |
---|---|
void |
addListener(javafx.beans.value.ChangeListener<? super javafx.collections.ObservableMap<K,V>> listener)
Adds a new
ChangeListener to this MapExpressionHelperEx . |
void |
fireValueChangedEvent()
Fires notifications to all attached
InvalidationListeners ,
ChangeListeners , and
MapChangeListeners . |
void |
fireValueChangedEvent(javafx.collections.MapChangeListener.Change<? extends K,? extends V> change)
Fires notifications to all attached
InvalidationListeners , and MapChangeListeners . |
void |
removeListener(javafx.beans.value.ChangeListener<? super javafx.collections.ObservableMap<K,V>> listener)
Removes the given
ChangeListener from this
MapChangeListener . |
addListener, addListener, getSource, notifyInvalidationListeners, notifyMapChangeListeners, removeListener, removeListener
public MapExpressionHelperEx(javafx.beans.value.ObservableMapValue<K,V> observableValue)
MapExpressionHelperEx
for the given source
ObservableMapValue
.observableValue
- The observableValue ObservableMap
, which is used in
change notifications.public void addListener(javafx.beans.value.ChangeListener<? super javafx.collections.ObservableMap<K,V>> listener)
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.listener
- The ChangeListener
to add.public void fireValueChangedEvent()
InvalidationListeners
,
ChangeListeners
, and
MapChangeListeners
.public void fireValueChangedEvent(javafx.collections.MapChangeListener.Change<? extends K,? extends V> change)
InvalidationListeners
, and MapChangeListeners
.fireValueChangedEvent
in class MapListenerHelperEx<K,V>
change
- The change that needs to be propagated.public void removeListener(javafx.beans.value.ChangeListener<? super javafx.collections.ObservableMap<K,V>> listener)
ChangeListener
from this
MapChangeListener
. If it was registered more than once, removes
only one occurrence.listener
- The ChangeListener
to remove.Copyright (c) 2014 itemis AG and others. All rights reserved.