Class AbstractDataProviderManager
java.lang.Object
io.jmix.fullcalendarflowui.component.data.AbstractDataProviderManager
- Direct Known Subclasses:
CallbackDataProviderManager
,ItemsDataProviderManager
INTERNAL.
The manager of concrete data provider. It is a connector between event source in client-side and server's
CalendarDataProvider
.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final CalendarDataProvider
protected final com.vaadin.flow.data.provider.KeyMapper<Object>
protected final String
protected final String
-
Constructor Summary
ConstructorDescriptionAbstractDataProviderManager
(CalendarDataProvider dataProvider, FullCalendarSerializer serializer, FullCalendar fullCalendar, String jsFunctionName) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
generateSourceId
(CalendarDataProvider dataProvider) abstract CalendarEvent
getCalendarEvent
(String clientId)
-
Field Details
-
dataProvider
-
sourceId
-
jsFunctionName
-
eventKeyMapper
-
dataSerializer
-
-
Constructor Details
-
AbstractDataProviderManager
public AbstractDataProviderManager(CalendarDataProvider dataProvider, FullCalendarSerializer serializer, FullCalendar fullCalendar, String jsFunctionName)
-
-
Method Details
-
getDataProvider
- Returns:
- data provider
-
getSourceId
- Returns:
- data provider's ID that is used in client-side
-
getJsFunctionName
- Returns:
- a JS function that should be invoked to add data provider to component at the client-side
-
getCalendarEvent
- Parameters:
clientId
- ID of event from client-side- Returns:
- calendar event or
null
if there is no event with the provided ID
-
generateSourceId
-