com.vaadin.data.provider.

Class AbstractDataProvider<T,F>

    • Constructor Detail

      • AbstractDataProvider

        public AbstractDataProvider()
    • Method Detail

      • refreshAll

        public void refreshAll()

        Description copied from interface: DataProvider

        Refreshes all data based on currently available data in the underlying provider.

        Specified by:

        refreshAll in interface DataProvider<T,F>

      • refreshItem

        public void refreshItem(T item)

        Description copied from interface: DataProvider

        Refreshes the given item. This method should be used to inform all DataProviderListeners that an item has been updated or replaced with a new instance.

        For this to work properly, the item must either implement #equals(Object) and #hashCode() to consider both the old and the new item instances to be equal, or alternatively DataProvider.getId(Object) should be implemented to return an appropriate identifier.

        Specified by:

        refreshItem in interface DataProvider<T,F>

        Parameters:

        item - the item to refresh

        See Also:

        DataProvider.getId(Object)

      • addListener

        protected Registration addListener(Class<?> eventType,
                                           DataProviderListener<T> listener,
                                           Method method)

        Registers a new listener with the specified activation method to listen events generated by this component. If the activation method does not have any arguments the event object will not be passed to it when it's called.

        Parameters:

        eventType - the type of the listened event. Events of this type or its subclasses activate the listener.

        listener - the object instance who owns the activation method.

        method - the activation method.

        Returns:

        a registration for the listener

      • fireEvent

        protected void fireEvent(EventObject event)

        Sends the event to all listeners.

        Parameters:

        event - the Event to be sent to all listeners.