Class CalendarDataRetriever
java.lang.Object
io.jmix.fullcalendarflowui.component.data.CalendarDataRetriever
- All Implemented Interfaces:
CalendarDataProvider
,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);
}
});
}
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.fullcalendarflowui.component.data.CallbackCalendarDataProvider
CallbackCalendarDataProvider.ItemsFetchContext
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.fullcalendarflowui.component.data.CallbackCalendarDataProvider
onItemsFetch
-
Field Details
-
id
-
-
Constructor Details
-
CalendarDataRetriever
public CalendarDataRetriever() -
CalendarDataRetriever
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceCalendarDataProvider
- Returns:
- an ID of data provider
-