E - The element type of the ObservableMultiset.public class MultisetExpressionHelper<E> extends MultisetListenerHelper<E>
ObservableMultiset.MultisetListenerHelper.AtomicChange<E>, MultisetListenerHelper.ElementarySubChange<E>| Constructor and Description |
|---|
MultisetExpressionHelper(ObservableMultisetValue<E> observableValue)
Constructs a new
MultisetExpressionHelper for the given source
ObservableMultisetValue. |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(javafx.beans.value.ChangeListener<? super ObservableMultiset<E>> listener)
Adds a new
ChangeListener to this
MultisetExpressionHelper. |
void |
fireValueChangedEvent()
Fires notifications to all attached
InvalidationListeners,
ChangeListeners, and
MultisetChangeListeners. |
void |
fireValueChangedEvent(MultisetChangeListener.Change<? extends E> change)
Fires notifications to all attached
InvalidationListeners, and
MultisetChangeListeners. |
void |
removeListener(javafx.beans.value.ChangeListener<? super ObservableMultiset<E>> listener)
Removes the given
ChangeListener from this
MultisetChangeListener. |
addListener, addListener, getSource, notifyInvalidationListeners, notifyMultisetChangeListeners, removeListener, removeListenerpublic MultisetExpressionHelper(ObservableMultisetValue<E> observableValue)
MultisetExpressionHelper for the given source
ObservableMultisetValue.observableValue - The observableValue ObservableMultiset, which is used
in change notifications.public void addListener(javafx.beans.value.ChangeListener<? super ObservableMultiset<E>> listener)
ChangeListener to this
MultisetExpressionHelper. 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()
InvalidationListeners,
ChangeListeners, and
MultisetChangeListeners.public void fireValueChangedEvent(MultisetChangeListener.Change<? extends E> change)
InvalidationListeners, and
MultisetChangeListeners.fireValueChangedEvent in class MultisetListenerHelper<E>change - The change that needs to be propagated.public void removeListener(javafx.beans.value.ChangeListener<? super ObservableMultiset<E>> listener)
ChangeListener from this
MultisetChangeListener. 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.