Interface ItemsCalendarDataProvider

All Superinterfaces:
CalendarDataProvider
All Known Implementing Classes:
ContainerCalendarDataProvider, ListCalendarDataProvider

public interface ItemsCalendarDataProvider extends CalendarDataProvider
Interface to be implemented by data providers that should load a list of events.
  • Method Details

    • getItems

      List<CalendarEvent> getItems()
      Returns:
      loaded calendar events
    • getItem

      @Nullable CalendarEvent getItem(Object itemId)
      Parameters:
      itemId - ID of calendar event
      Returns:
      calendar event or null if no event with provided ID
    • addItemSetChangeListener

      com.vaadin.flow.shared.Registration addItemSetChangeListener(Consumer<ItemsCalendarDataProvider.ItemSetChangeEvent> listener)
      Adds an item set change listener.
      Parameters:
      listener - listener to add
      Returns:
      a registration object for removing an event listener added to a data provider