Class ListExpressionHelperEx<E>
java.lang.Object
org.eclipse.gef.common.collections.ListListenerHelperEx<E>
org.eclipse.gef.common.beans.binding.ListExpressionHelperEx<E>
- Type Parameters:
E
- The element type of theListExpression
.
A utility class to support notifications for an
ListExpression
.-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.gef.common.collections.ListListenerHelperEx
ListListenerHelperEx.AtomicChange<E>, ListListenerHelperEx.ElementarySubChange<E>
-
Constructor Summary
ConstructorsConstructorDescriptionListExpressionHelperEx
(ObservableListValue<E> observableValue) Constructs a newListExpressionHelperEx
for the given sourceObservableListValue
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(ChangeListener<? super ObservableList<E>> listener) Adds a newChangeListener
to thisListExpressionHelperEx
.void
Fires notifications to all attachedInvalidationListeners
,ChangeListeners
, andListChangeListeners
.void
fireValueChangedEvent
(ListChangeListener.Change<? extends E> change) Fires notifications to all attachedInvalidationListeners
, andListChangeListeners
.void
removeListener
(ChangeListener<? super ObservableList<E>> listener) Removes the givenChangeListener
from thisListChangeListener
.Methods inherited from class org.eclipse.gef.common.collections.ListListenerHelperEx
addListener, addListener, getElementaryChanges, getSource, notifyInvalidationListeners, notifyListChangeListeners, removeListener, removeListener
-
Constructor Details
-
ListExpressionHelperEx
Constructs a newListExpressionHelperEx
for the given sourceObservableListValue
.- Parameters:
observableValue
- The observableValueObservableList
, which is used in change notifications.
-
-
Method Details
-
addListener
Adds a newChangeListener
to thisListExpressionHelperEx
. 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
, andListChangeListeners
. -
fireValueChangedEvent
Fires notifications to all attachedInvalidationListeners
, andListChangeListeners
.- Overrides:
fireValueChangedEvent
in classListListenerHelperEx<E>
- Parameters:
change
- The change that needs to be propagated.
-
removeListener
Removes the givenChangeListener
from thisListChangeListener
. If it was registered more than once, removes only one occurrence.- Parameters:
listener
- The listener to remove.
-