K - The key type of the ObservableSetMultimap.V - The value type of the ObservableSetMultimap.public class SetMultimapListenerHelper<K,V>
extends java.lang.Object
ObservableSetMultimap.| Modifier and Type | Class and Description |
|---|---|
static class |
SetMultimapListenerHelper.AtomicChange<K,V>
A simple implementation of an
SetMultimapChangeListener.Change. |
static class |
SetMultimapListenerHelper.ElementarySubChange<K,V>
An elementary change related to a single key of a
ObservableSetMultimap. . |
| Constructor and Description |
|---|
SetMultimapListenerHelper(ObservableSetMultimap<K,V> source)
Constructs a new
SetMultimapListenerHelper for the given source
ObservableSetMultimap. |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(javafx.beans.InvalidationListener listener)
Adds a new
InvalidationListener to this
SetMultimapListenerHelper. |
void |
addListener(SetMultimapChangeListener<? super K,? super V> listener)
Adds a new
SetMultimapChangeListener to this
SetMultimapListenerHelper. |
void |
fireValueChangedEvent(SetMultimapChangeListener.Change<? extends K,? extends V> change)
Notifies all attached
InvalidationListeners and
SetMultimapChangeListeners about the change. |
protected ObservableSetMultimap<K,V> |
getSource()
Returns the source
ObservableSetMultimap this
SetMultimapListenerHelper is bound to, which is used in change
notifications. |
protected void |
notifyInvalidationListeners()
Notifies all registered
InvalidationListeners. |
protected void |
notifySetMultimapChangeListeners(SetMultimapChangeListener.Change<? extends K,? extends V> change)
Notifies the attached
SetMultimapChangeListeners about the
related change. |
void |
removeListener(javafx.beans.InvalidationListener listener)
Removes the given
InvalidationListener from this
SetMultimapListenerHelper. |
void |
removeListener(SetMultimapChangeListener<? super K,? super V> listener)
Removes the given
SetMultimapChangeListener from this
SetMultimapListenerHelper. |
public SetMultimapListenerHelper(ObservableSetMultimap<K,V> source)
SetMultimapListenerHelper for the given source
ObservableSetMultimap.source - The ObservableSetMultimap to use as source in change
notifications.public void addListener(javafx.beans.InvalidationListener listener)
InvalidationListener to this
SetMultimapListenerHelper. If the same listener is added more
than once, it will be registered more than once and will receive multiple
change events.listener - The listener to add.public void addListener(SetMultimapChangeListener<? super K,? super V> listener)
SetMultimapChangeListener to this
SetMultimapListenerHelper. If the same listener is added more
than once, it will be registered more than once and will receive multiple
change events.listener - The listener to add.public void fireValueChangedEvent(SetMultimapChangeListener.Change<? extends K,? extends V> change)
InvalidationListeners and
SetMultimapChangeListeners about the change.change - The change to notify listeners about.protected ObservableSetMultimap<K,V> getSource()
ObservableSetMultimap this
SetMultimapListenerHelper is bound to, which is used in change
notifications.ObservableSetMultimap.protected void notifyInvalidationListeners()
InvalidationListeners.protected void notifySetMultimapChangeListeners(SetMultimapChangeListener.Change<? extends K,? extends V> change)
SetMultimapChangeListeners about the
related change.change - The applied change.public void removeListener(javafx.beans.InvalidationListener listener)
InvalidationListener from this
SetMultimapListenerHelper. If its was registered more than once,
removes one occurrence.listener - The listener to remove.public void removeListener(SetMultimapChangeListener<? super K,? super V> listener)
SetMultimapChangeListener from this
SetMultimapListenerHelper. If its was registered more than once,
removes one occurrence.listener - The listener to remove.Copyright (c) 2014 itemis AG and others. All rights reserved.