Class EventResizeEvent
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.EventResizeEvent
- All Implemented Interfaces:
Serializable
The event is fired when the resizing stops and the calendar event's duration has changed.
- 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 DisplayModeInfo
protected final CalendarDuration
protected final CalendarDuration
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
ConstructorDescriptionEventResizeEvent
(FullCalendar fullCalendar, boolean fromClient, CalendarEvent calendarEvent, CalendarDataProvider dataProvider, List<AbstractEventMoveEvent.RelatedDataProviderContext> relatedDataProviderContexts, List<CalendarEvent> relatedCalendarEvents, AbstractEventMoveEvent.OldValues oldValues, CalendarDuration startDelta, CalendarDuration endDelta, MouseEventDetails mouseEventDetails, DisplayModeInfo displayModeInfo) -
Method Summary
Modifier and TypeMethodDescription<T extends CalendarEvent>
TReturns 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
-
startDelta
-
endDelta
-
displayModeInfo
-
-
Constructor Details
-
EventResizeEvent
public EventResizeEvent(FullCalendar fullCalendar, boolean fromClient, CalendarEvent calendarEvent, CalendarDataProvider dataProvider, List<AbstractEventMoveEvent.RelatedDataProviderContext> relatedDataProviderContexts, List<CalendarEvent> relatedCalendarEvents, AbstractEventMoveEvent.OldValues oldValues, @Nullable CalendarDuration startDelta, @Nullable CalendarDuration endDelta, MouseEventDetails mouseEventDetails, DisplayModeInfo displayModeInfo)
-
-
Method Details
-
getCalendarEvent
- Returns:
- the changed calendar event
-
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 resized one.
- Overrides:
getRelatedCalendarEvents
in classAbstractEventMoveEvent
- Returns:
- all related calendar events that were also resized
-
getDataProvider
- Returns:
- data provider of resized calendar event
-
getStartDelta
- Returns:
- the amount of time the event’s start date was moved by or
null
if start date was not moved
-
getEndDelta
- Returns:
- the amount of time the event’s end date was moved by or
null
if end date was not moved
-
getDisplayModeInfo
- Returns:
- information about current calendar's display mode
-