Class SelectEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<FullCalendar>
io.jmix.fullcalendarflowui.component.event.SelectEvent
- All Implemented Interfaces:
Serializable
The event is fired when a date/time selection is made.
Selection mode can be enabled by JmixFullCalendar.setSelectionEnabled(boolean)
.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected final boolean
protected final DisplayModeInfo
protected final LocalDateTime
protected final MouseEventDetails
protected final LocalDateTime
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionSelectEvent
(FullCalendar source, boolean fromClient, MouseEventDetails mouseEventDetails, LocalDateTime startDateTime, LocalDateTime endDateTime, boolean allDay, DisplayModeInfo displayModeInfo) -
Method Summary
Modifier and TypeMethodDescriptionReturns date-time as is from component without transformation.Returns date-time as is from component without transformation.boolean
isAllDay()
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListener
Methods inherited from class java.util.EventObject
toString
-
Field Details
-
startDateTime
-
endDateTime
-
allDay
protected final boolean allDay -
mouseEventDetails
-
displayModeInfo
-
-
Constructor Details
-
SelectEvent
public SelectEvent(FullCalendar source, boolean fromClient, @Nullable MouseEventDetails mouseEventDetails, LocalDateTime startDateTime, LocalDateTime endDateTime, boolean allDay, DisplayModeInfo displayModeInfo)
-
-
Method Details
-
getStartDateTime
Returns date-time as is from component without transformation. It means that value corresponds component's TimeZone.- Returns:
- start date-time of selection
-
getEndDateTime
Returns date-time as is from component without transformation. It means that value corresponds component's TimeZone.- Returns:
- end date-time of selection
-
isAllDay
public boolean isAllDay()- Returns:
- whether the selection happened on all-day cells
-
getDisplayModeInfo
- Returns:
- information about current calendar's display mode
-
getMouseEventDetails
- Returns:
- information about mouse click or
null
if selection is performed by component methods likeJmixFullCalendar.select(LocalDateTime, LocalDateTime)
-