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 typeAll Implemented Interfaces:
Direct Known Subclasses:
public class DataChangeEvent<T> extends EventObject
An event fired when the data of a
DataProvider
changes.Since:
1.0
Author:
Vaadin Ltd
See Also:
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DataChangeEvent.DataRefreshEvent<T>
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
Constructors Constructor Description DataChangeEvent(DataProvider<T,?> source)
Creates a new
DataChangeEvent
event originating from the given data provider.
-
Method Summary
All Methods Modifier and Type Method Description DataProvider<T,?>
getSource()
void
unregisterListener()
Unregisters the event listener currently being invoked.
-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
Constructor Detail
-
DataChangeEvent
public DataChangeEvent(DataProvider<T,?> source)
Creates a new
DataChangeEvent
event originating from the given data provider.Parameters:
source
- the data provider, not null
-
-
Method Detail
-
getSource
public DataProvider<T,?> getSource()
Overrides:
getSource
in classEventObject
-
unregisterListener
public void unregisterListener() throws IllegalStateException
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.
-
-