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 a DataProvider changes.
Since:
1.0
Author:
Vaadin Ltd
See Also:
  • Constructor Details

    • 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 Details

    • getSource

      public DataProvider<T,?> getSource()
      Overrides:
      getSource in class EventObject
    • 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.