Package com.vaadin.flow.data.provider
Class DataChangeEvent<T>
java.lang.Object
java.util.EventObject
com.vaadin.flow.data.provider.DataChangeEvent<T>
- Type Parameters:
T- the data type
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DataChangeEvent.DataRefreshEvent
An event fired when the data of a
DataProvider changes.- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn event fired when a single item of aDataProviderhas been updated. -
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionDataChangeEvent(DataProvider<T, ?> source) Creates a newDataChangeEventevent originating from the given data provider. -
Method Summary
Modifier and TypeMethodDescriptionDataProvider<T,?> voidUnregisters the event listener currently being invoked.Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
DataChangeEvent
Creates a newDataChangeEventevent originating from the given data provider.- Parameters:
source- the data provider, not null
-
-
Method Details
-
getSource
- Overrides:
getSourcein classEventObject
-
unregisterListener
Unregisters the event listener currently being invoked.This method can only be called from within an event listener otherwise it throws an
IllegalStateException. Calling it will remove the current event listener so no further events are passed to it.- Throws:
IllegalStateException- if the method is called outside of the event listener.
-