Class CalendarDataRetriever

java.lang.Object
io.jmix.fullcalendarflowui.component.data.CalendarDataRetriever
All Implemented Interfaces:
CalendarDataProvider, CallbackCalendarDataProvider

public abstract class CalendarDataRetriever extends Object implements CallbackCalendarDataProvider
Base class for simple data retrievers. For instance:

 @ViewComponent
 private FullCalendar calendar;
 @Autowired
 private CalendarEventService eventService;

 @Subscribe
 public void onInit(final InitEvent event) {
     calendar.addDataProvider(new CalendarDataRetriever() {
         @Override
         public List<CalendarEvent> onItemsFetch(ItemsFetchContext context) {
             return eventService.fetchEvents(context);
         }
     });
 }
 
  • Field Details

  • Constructor Details

    • CalendarDataRetriever

      public CalendarDataRetriever()
    • CalendarDataRetriever

      public CalendarDataRetriever(String id)
  • Method Details