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.
public class ListExpressionHelperEx<E> extends ListListenerHelperEx<E>
A utility class to support notifications for anListExpression.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.gef.common.collections.ListListenerHelperEx
ListListenerHelperEx.AtomicChange<E>, ListListenerHelperEx.ElementarySubChange<E>
-
-
Constructor Summary
Constructors Constructor Description ListExpressionHelperEx(javafx.beans.value.ObservableListValue<E> observableValue)Constructs a newListExpressionHelperExfor the given sourceObservableListValue.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(javafx.beans.value.ChangeListener<? super javafx.collections.ObservableList<E>> listener)Adds a newChangeListenerto thisListExpressionHelperEx.voidfireValueChangedEvent()Fires notifications to all attachedInvalidationListeners,ChangeListeners, andListChangeListeners.voidfireValueChangedEvent(javafx.collections.ListChangeListener.Change<? extends E> change)Fires notifications to all attachedInvalidationListeners, andListChangeListeners.voidremoveListener(javafx.beans.value.ChangeListener<? super javafx.collections.ObservableList<E>> listener)Removes the givenChangeListenerfrom thisListChangeListener.-
Methods inherited from class org.eclipse.gef.common.collections.ListListenerHelperEx
addListener, addListener, getElementaryChanges, getSource, notifyInvalidationListeners, notifyListChangeListeners, removeListener, removeListener
-
-
-
-
Constructor Detail
-
ListExpressionHelperEx
public ListExpressionHelperEx(javafx.beans.value.ObservableListValue<E> observableValue)
Constructs a newListExpressionHelperExfor the given sourceObservableListValue.- Parameters:
observableValue- The observableValueObservableList, which is used in change notifications.
-
-
Method Detail
-
addListener
public void addListener(javafx.beans.value.ChangeListener<? super javafx.collections.ObservableList<E>> listener)
Adds a newChangeListenerto 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
public void fireValueChangedEvent(javafx.collections.ListChangeListener.Change<? extends E> change)
Fires notifications to all attachedInvalidationListeners, andListChangeListeners.- Overrides:
fireValueChangedEventin classListListenerHelperEx<E>- Parameters:
change- The change that needs to be propagated.
-
removeListener
public void removeListener(javafx.beans.value.ChangeListener<? super javafx.collections.ObservableList<E>> listener)
Removes the givenChangeListenerfrom thisListChangeListener. If it was registered more than once, removes only one occurrence.- Parameters:
listener- The listener to remove.
-
-