Class DataChangeEvent<T>

  • Type Parameters:
    T - the data type
    All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    DataChangeEvent.DataRefreshEvent

    public class DataChangeEvent<T>
    extends java.util.EventObject
    An event fired when the data of a DataProvider changes.
    Since:
    8.0
    Author:
    Vaadin Ltd
    See Also:
    DataProviderListener, Serialized Form
    • 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 Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DataProvider<T,​?> getSource()  
      • Methods inherited from class java.util.EventObject

        toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 class java.util.EventObject