Class EventDropEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<FullCalendar>
io.jmix.fullcalendarflowui.component.event.AbstractClickEvent
io.jmix.fullcalendarflowui.component.event.AbstractEventMoveEvent
io.jmix.fullcalendarflowui.component.event.EventDropEvent
- All Implemented Interfaces:
Serializable
The event is fired when the dragging stops and the event has been moved to a different day or time slot.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.fullcalendarflowui.component.event.AbstractEventMoveEvent
AbstractEventMoveEvent.OldValues, AbstractEventMoveEvent.RelatedDataProviderContext
-
Field Summary
Modifier and TypeFieldDescriptionprotected final CalendarEvent
protected final CalendarDataProvider
protected final CalendarDuration
protected final DisplayModeInfo
Fields inherited from class io.jmix.fullcalendarflowui.component.event.AbstractEventMoveEvent
oldValues, relatedCalendarEvents, relatedDataProviderContexts
Fields inherited from class io.jmix.fullcalendarflowui.component.event.AbstractClickEvent
mouseEventDetails
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionEventDropEvent
(FullCalendar fullCalendar, boolean fromClient, CalendarEvent calendarEvent, CalendarDataProvider dataProvider, List<AbstractEventMoveEvent.RelatedDataProviderContext> relatedDataProviderContexts, List<CalendarEvent> relatedCalendarEvents, AbstractEventMoveEvent.OldValues oldValues, CalendarDuration delta, MouseEventDetails mouseEventDetails, DisplayModeInfo displayModeInfo) -
Method Summary
Modifier and TypeMethodDescription<T extends CalendarEvent>
TgetDelta()
Returns all related calendar events even if they are from different data providers.Methods inherited from class io.jmix.fullcalendarflowui.component.event.AbstractEventMoveEvent
getOldValues, getRelatedDataProviderContexts
Methods inherited from class io.jmix.fullcalendarflowui.component.event.AbstractClickEvent
getMouseEventDetails
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListener
Methods inherited from class java.util.EventObject
toString
-
Field Details
-
calendarEvent
-
dataProvider
-
delta
-
displayModeInfo
-
-
Constructor Details
-
EventDropEvent
public EventDropEvent(FullCalendar fullCalendar, boolean fromClient, CalendarEvent calendarEvent, CalendarDataProvider dataProvider, List<AbstractEventMoveEvent.RelatedDataProviderContext> relatedDataProviderContexts, List<CalendarEvent> relatedCalendarEvents, AbstractEventMoveEvent.OldValues oldValues, CalendarDuration delta, MouseEventDetails mouseEventDetails, DisplayModeInfo displayModeInfo)
-
-
Method Details
-
getCalendarEvent
- Returns:
- calendar event that contains new values after the drop
-
getRelatedCalendarEvents
Returns all related calendar events even if they are from different data providers. To get related calendar events by data provider, useAbstractEventMoveEvent.getRelatedDataProviderContexts()
.An event might be linked to other events with the same group ID. So these events will be related with dropped one.
- Overrides:
getRelatedCalendarEvents
in classAbstractEventMoveEvent
- Returns:
- related calendar events that were also dropped
-
getDataProvider
- Returns:
- data provider of dropped calendar event
-
getDelta
- Returns:
- the amount of time the event was moved by
-
getDisplayModeInfo
- Returns:
- information about current calendar's display mode
-