You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.data.provider.

Class DataChangeEvent.DataRefreshEvent<T>

  • Type Parameters:

    T - the data type

    All Implemented Interfaces:

    Serializable

    Enclosing class:

    DataChangeEvent<T>

    public static class DataChangeEvent.DataRefreshEvent<T>
    extends DataChangeEvent<T>

    An event fired when a single item of a DataProvider has been updated.

    See Also:

    Serialized Form

    • Constructor Detail

      • DataRefreshEvent

        public DataRefreshEvent​(DataProvider<T,​?> source,
                                T item)

        Creates a new data refresh event originating from the given data provider.

        Parameters:

        source - the data provider, not null

        item - the updated item, not null

      • DataRefreshEvent

        public DataRefreshEvent​(DataProvider<T,​?> source,
                                T item,
                                boolean refreshChildren)

        Creates a new data refresh event originating from the given data provider.

        Parameters:

        source - the data provider, not null

        item - the updated item, not null

        refreshChildren - whether, in hierarchical providers, subelements should be refreshed as well

    • Method Detail

      • getItem

        public T getItem()

        Gets the refreshed item.

        Returns:

        the refreshed item

      • isRefreshChildren

        public boolean isRefreshChildren()

        Gets the a boolean whether the refresh is supposed to be refreshChildren (in hierarchical data providers).

        Returns:

        whether, in hierarchical providers, subelements should be refreshed as well