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
Modifier and TypeClassDescriptionstatic class
An event fired when a single item of aDataProvider
has been updated. -
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionDataChangeEvent
(DataProvider<T, ?> source) Creates a newDataChangeEvent
event originating from the given data provider. -
Method Summary
Modifier and TypeMethodDescriptionDataProvider<T,
?> void
Unregisters the event listener currently being invoked.Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
DataChangeEvent
Creates a newDataChangeEvent
event originating from the given data provider.- Parameters:
source
- the data provider, not null
-
-
Method Details
-
getSource
- Overrides:
getSource
in 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.
-