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
public class DataChangeEvent<T> extends EventObject
An event fired when the data of aDataProviderchanges.- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
DataProviderListener, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDataChangeEvent.DataRefreshEvent<T>An event fired when a single item of aDataProviderhas been updated.
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description DataChangeEvent(DataProvider<T,?> source)Creates a newDataChangeEventevent originating from the given data provider.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataProvider<T,?>getSource()voidunregisterListener()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 newDataChangeEventevent originating from the given data provider.- Parameters:
source- the data provider, not null
-
-
Method Detail
-
getSource
public DataProvider<T,?> getSource()
- Overrides:
getSourcein classEventObject
-
unregisterListener
public void unregisterListener() throws IllegalStateExceptionUnregisters 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.
-
-