Class SetExpressionHelperEx<E>
- java.lang.Object
-
- org.eclipse.gef.common.collections.SetListenerHelperEx<E>
-
- org.eclipse.gef.common.beans.binding.SetExpressionHelperEx<E>
-
- Type Parameters:
E
- The element type of theSetExpression
.
public class SetExpressionHelperEx<E> extends SetListenerHelperEx<E>
A utility class to support notifications for anSetExpression
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.gef.common.collections.SetListenerHelperEx
SetListenerHelperEx.AtomicChange<E>
-
-
Constructor Summary
Constructors Constructor Description SetExpressionHelperEx(javafx.beans.value.ObservableSetValue<E> observableValue)
Constructs a newSetExpressionHelperEx
for the given sourceObservableSetValue
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(javafx.beans.value.ChangeListener<? super javafx.collections.ObservableSet<E>> listener)
Adds a newChangeListener
to thisSetExpressionHelperEx
.void
fireValueChangedEvent()
Fires notifications to all attachedInvalidationListeners
,ChangeListeners
, andSetChangeListeners
.void
fireValueChangedEvent(javafx.collections.SetChangeListener.Change<? extends E> change)
Fires notifications to all attachedInvalidationListeners
, andSetChangeListeners
.void
removeListener(javafx.beans.value.ChangeListener<? super javafx.collections.ObservableSet<E>> listener)
Removes the givenChangeListener
from thisSetChangeListener
.-
Methods inherited from class org.eclipse.gef.common.collections.SetListenerHelperEx
addListener, addListener, getSource, notifyInvalidationListeners, notifySetChangeListeners, removeListener, removeListener
-
-
-
-
Constructor Detail
-
SetExpressionHelperEx
public SetExpressionHelperEx(javafx.beans.value.ObservableSetValue<E> observableValue)
Constructs a newSetExpressionHelperEx
for the given sourceObservableSetValue
.- Parameters:
observableValue
- The observableValueObservableSet
, which is used in change notifications.
-
-
Method Detail
-
addListener
public void addListener(javafx.beans.value.ChangeListener<? super javafx.collections.ObservableSet<E>> listener)
Adds a newChangeListener
to thisSetExpressionHelperEx
. 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.
-
fireValueChangedEvent
public void fireValueChangedEvent()
Fires notifications to all attachedInvalidationListeners
,ChangeListeners
, andSetChangeListeners
.
-
fireValueChangedEvent
public void fireValueChangedEvent(javafx.collections.SetChangeListener.Change<? extends E> change)
Fires notifications to all attachedInvalidationListeners
, andSetChangeListeners
.- Overrides:
fireValueChangedEvent
in classSetListenerHelperEx<E>
- Parameters:
change
- The change that needs to be propagated.
-
removeListener
public void removeListener(javafx.beans.value.ChangeListener<? super javafx.collections.ObservableSet<E>> listener)
Removes the givenChangeListener
from thisSetChangeListener
. If it was registered more than once, removes only one occurrence.- Parameters:
listener
- TheChangeListener
to remove.
-
-