Class MultisetExpressionHelper<E>
java.lang.Object
org.eclipse.gef.common.collections.MultisetListenerHelper<E>
org.eclipse.gef.common.beans.binding.MultisetExpressionHelper<E>
- Type Parameters:
- E- The element type of the- ObservableMultiset.
A utility class to support change notifications for an
 
ObservableMultiset.- 
Nested Class SummaryNested classes/interfaces inherited from class org.eclipse.gef.common.collections.MultisetListenerHelperMultisetListenerHelper.AtomicChange<E>, MultisetListenerHelper.ElementarySubChange<E>
- 
Constructor SummaryConstructorsConstructorDescriptionMultisetExpressionHelper(ObservableMultisetValue<E> observableValue) Constructs a newMultisetExpressionHelperfor the given sourceObservableMultisetValue.
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddListener(javafx.beans.value.ChangeListener<? super ObservableMultiset<E>> listener) Adds a newChangeListenerto thisMultisetExpressionHelper.voidFires notifications to all attachedInvalidationListeners,ChangeListeners, andMultisetChangeListeners.voidfireValueChangedEvent(MultisetChangeListener.Change<? extends E> change) Fires notifications to all attachedInvalidationListeners, andMultisetChangeListeners.voidremoveListener(javafx.beans.value.ChangeListener<? super ObservableMultiset<E>> listener) Removes the givenChangeListenerfrom thisMultisetChangeListener.Methods inherited from class org.eclipse.gef.common.collections.MultisetListenerHelperaddListener, addListener, getSource, notifyInvalidationListeners, notifyMultisetChangeListeners, removeListener, removeListener
- 
Constructor Details- 
MultisetExpressionHelperConstructs a newMultisetExpressionHelperfor the given sourceObservableMultisetValue.- Parameters:
- observableValue- The observableValue- ObservableMultiset, which is used in change notifications.
 
 
- 
- 
Method Details- 
addListenerAdds a newChangeListenerto thisMultisetExpressionHelper. 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.
 
- 
fireValueChangedEventpublic void fireValueChangedEvent()Fires notifications to all attachedInvalidationListeners,ChangeListeners, andMultisetChangeListeners.
- 
fireValueChangedEventFires notifications to all attachedInvalidationListeners, andMultisetChangeListeners.- Overrides:
- fireValueChangedEventin class- MultisetListenerHelper<E>
- Parameters:
- change- The change that needs to be propagated.
 
- 
removeListenerpublic void removeListener(javafx.beans.value.ChangeListener<? super ObservableMultiset<E>> listener) Removes the givenChangeListenerfrom thisMultisetChangeListener. If it was registered more than once, removes only one occurrence.- Parameters:
- listener- The- ChangeListenerto remove.
 
 
-