com.vaadin.flow.data.provider.
Class DataChangeEvent<T>
Type Parameters:
T
- the data type
All Implemented Interfaces:
Direct Known Subclasses:
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 class
An event fired when a single item of a
DataProvider
has been updated. -
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionDataChangeEvent
(DataProvider<T, ?> source) Creates a new
DataChangeEvent
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 new
DataChangeEvent
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.
-