Class JmixFullCalendar
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier
,com.vaadin.flow.component.DetachNotifier
,com.vaadin.flow.component.HasElement
,com.vaadin.flow.component.HasSize
,com.vaadin.flow.component.HasStyle
,Serializable
- Direct Known Subclasses:
FullCalendar
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected LocalDate
protected com.vaadin.flow.shared.Registration
protected com.vaadin.flow.shared.Registration
protected com.vaadin.flow.shared.Registration
protected JmixFullCalendarDeserializer
protected CalendarDisplayMode
protected com.vaadin.flow.shared.Registration
protected com.vaadin.flow.shared.Registration
protected com.vaadin.flow.shared.Registration
protected com.vaadin.flow.shared.Registration
protected com.vaadin.flow.shared.Registration
protected com.vaadin.flow.internal.StateTree.ExecutionRegistration
protected boolean
protected elemental.json.JsonFactory
protected com.vaadin.flow.shared.Registration
protected JmixFullCalendarOptions
protected com.vaadin.flow.shared.Registration
protected JmixFullCalendarSerializer
protected com.vaadin.flow.internal.StateTree.ExecutionRegistration
protected com.vaadin.flow.shared.Registration
protected com.vaadin.flow.shared.Registration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCustomCalendarDisplayMode
(CustomCalendarDisplayMode displayMode) Adds custom display mode to the calendar.protected void
void
addMoreLinkClassName
(String className) Adds CSS class name to "more" link.void
addMoreLinkClassNames
(String... classNames) Adds class names to "more" link.protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected JmixFullCalendarDeserializer
protected elemental.json.JsonFactory
protected JmixFullCalendarOptions
protected JmixFullCalendarSerializer
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected elemental.json.JsonArray
fetchCalendarItems
(String sourceId, String start, String end) <T extends AbstractCalendarDisplayModeProperties>
TgetCalendarDisplayModeProperties
(CalendarDisplayModes displayMode) Returns properties for the specific calendar display mode.Returns custom calendar display mode by its ID.getDate()
Returns a date for the current date of the calendar.protected elemental.json.JsonObject
getDayCellBottomTextInfo
(elemental.json.JsonObject jsonContext) protected elemental.json.JsonArray
getDayCellClassNames
(elemental.json.JsonObject jsonContext) protected elemental.json.JsonArray
getDayHeaderClassNames
(elemental.json.JsonObject jsonContext) protected CalendarDisplayMode
getDisplayMode
(String id) protected elemental.json.JsonArray
getMoreLinkClassNames
(elemental.json.JsonObject jsonContext) protected elemental.json.JsonArray
getNowIndicatorClassNames
(elemental.json.JsonObject jsonContext) int
protected elemental.json.JsonArray
getSlotLabelClassNames
(elemental.json.JsonObject jsonContext) protected CalendarDuration
inverseDuration
(CalendarDuration duration) boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
navigateToDate
(LocalDate date) Moves calendar to the specified date.void
Moves the calendar one step forward.void
navigateToNext
(CalendarDuration duration) Moves the calendar forward by the specified duration.void
Moves the calendar one step back.void
navigateToPrevious
(CalendarDuration duration) Moves the calendar back by the specified duration.void
Moves calendar to the current date.protected void
onAttach
(com.vaadin.flow.component.AttachEvent attachEvent) protected void
onDateClick
(DateClickDomEvent event) protected void
onDatesSet
(DatesSetDomEvent event) protected void
protected void
onEventClick
(EventClickDomEvent event) protected void
onEventDrop
(EventDropDomEvent event) protected void
protected void
protected void
onEventResize
(EventResizeDomEvent event) protected void
protected void
protected void
onSelect
(SelectDomEvent event) protected void
onUnselect
(UnselectDomEvent event) protected void
protected void
protected void
performUpdateOptions
(boolean onlyDirty) void
Removes all CSS class names from "more" link.void
removeCustomCalendarDisplayMode
(CustomCalendarDisplayMode customDisplayMode) Removes custom calendar display mode.void
removeMoreLinkClassName
(String className) Removes CSS class name from "more" link.protected void
requestUpdateOptions
(boolean onlyDirty) void
scrollToTime
(Long duration) Scrolls to the specified time in milliseconds.void
scrollToTime
(LocalTime localTime) Scrolls to the specified time.void
select
(LocalDateTime start) Selects a time range that starts from specified time to next 24h.void
select
(LocalDateTime start, boolean allDay) Selects a time range that starts from specified time to next 24h.void
select
(LocalDateTime start, LocalDateTime end) Selects the date-time range.void
select
(LocalDateTime start, LocalDateTime end, boolean allDay) Selects the date-time range.void
setAllDayMaintainDurationEnabled
(boolean enabled) Determines how an event’s duration should be mutated when it is dragged from a timed section to an all-day section and vice versa.void
setCalendarDisplayMode
(CalendarDisplayMode displayMode) Switches currently shown display mode to the provided one.void
setDateAlignment
(String alignment) Sets the first visible date ofCustomCalendarDisplayMode
.void
setDateIncrement
(CalendarDuration dateIncrement) Defines the step ofnavigateToNext()
/navigateToPrevious()
methods.void
setDayHeadersVisible
(boolean visible) Sets whether the day headers should appear.void
setDayMaxEventRows
(Integer maxEventRows) Sets rows count of events in day-grid display modes and in "all-day" section in time-grid display modes.void
setDayMaxEvents
(Integer maxRows) Sets rows count of events in day-grid display modes and in "all-day" section in time-grid display modes.void
setDefaultAllDay
(boolean defaultAllDay) Sets the default value for each calendar event'sallDay
property when it is unspecified.void
Sets the default duration of all-day events if they don't specifyendDateTime
property.void
setDefaultDayHeaderFormat
(String format) Sets the format of the text that will be displayed on the calendar’s column headings.void
setDefaultDayMaxEventRowsEnabled
(boolean enabled) Limits the maximum number of stacked events within a given day.void
setDefaultDayMaxEventsEnabled
(boolean enabled) Limits the maximum number of stacked events within a given day.void
setDefaultDayPopoverFormat
(String format) Sets the date format of title of the popover that is shown when "more" link is clicked.void
setDefaultEventTimeFormat
(String format) Sets the format of the time-text that will be displayed on each event.void
setDefaultSlotLabelFormat
(String format) Sets the format of the text that will be displayed within a time slot.void
setDefaultTimedEventDuration
(CalendarDuration duration) Sets the default duration for timed events if they don't specifyendDateTime
property.void
setDefaultWeekNumberFormat
(String format) Sets the format of the week number that will be displayed whenisWeekNumbersVisible()
istrue
.void
setDisplayEventTime
(boolean displayEventTime) Determines visibility of time text of each event.void
setDragRevertDuration
(Integer revertDuration) Sets the time it takes for an event to revert to its original position after an unsuccessful drag.void
setDragScroll
(boolean enabled) Enables to automatically scroll the scroll-containers during event drag-and-drop and date selecting.void
setEventBackgroundColor
(String eventBackgroundColor) Sets the background color for all events on the calendar.void
setEventBorderColor
(String borderColor) Sets the border color for all events on the calendar.void
setEventDragMinDistance
(Integer minDistance) Sets how many pixels the user’s mouse/touch must move before an event drag activates.void
setEventDurationEditable
(boolean editable) Enables to edit event duration using resizing.void
setEventInteractive
(boolean interactive) Enables all events to be focusable/tabbable.void
setEventLongPressDelay
(Integer delay) Sets amount of time the user must hold down before an event becomes draggable.void
setEventMaxStack
(Integer eventMaxStack) Sets the maximum number of events that stack top-to-bottom for time-grid display modes.void
setEventOrder
(List<String> eventOrder) Sets the list of calendar event properties that should participate in sorting.void
setEventOrderJsFunction
(JsFunction jsFunction) Sets JavaScript function definition that should sort event in the same day cell or time slot.void
setEventOrderStrict
(boolean eventOrderStrict) Enables the component to strictly follow the specified event order.void
setEventOverlap
(boolean enabled) Allows events to overlap each other during dragging and resizing.void
setEventOverlapJsFunction
(JsFunction jsFunction) Sets JavaScript function definition that will be executed every time when an event is dragged/resized to cell with other events.void
setEventResizableFromStart
(boolean resizableFromStart) Enables to resize an event from its starting date.void
setEventStartEditable
(boolean editable) Enables to edit event start time using dragging.void
setEventTextColor
(String textColor) Sets the text color for all events on the calendar.void
setExpandRows
(boolean expandRows) Enables to expand rows of time-grid display modes if they don’t take up the entire height.void
setForceEventDuration
(boolean forceEventDuration) Makes the component to assignend
property value to events if they do not have it.void
setInitialCalendarDisplayMode
(CalendarDisplayMode displayMode) Sets initial calendar display mode that will be shown after attaching component to th UI.void
setInitialDate
(LocalDate initialDate) Sets the initial date that will be displayed when the component is attached to UI.void
setMoreLinkCalendarDisplayMode
(CalendarDisplayMode displayMode) Sets the calendar display mode that should be shown when "more" link is clicked.void
setMoreLinkClassNames
(List<String> classNames) Sets CSS class names that should be added to "more" link.void
setNavigationLinksEnabled
(boolean enabled) Enables navigation to date using day names and week names.void
setNextDayThreshold
(CalendarDuration nextDayThreshold) Sets the minimum time that event's end date should achieve to render event as it if were on that day.void
setNowIndicatorVisible
(boolean nowIndicatorVisible) Enables displaying a marker indicating the current time.void
setProgressiveEventRendering
(boolean progressiveEventRendering) Enables rendering of events from the data provider as soon as the events are loaded.void
setScrollTime
(CalendarDuration scrollTime) Sets the initial scroll position to a specific time.void
setScrollTimeReset
(boolean scrollTimeReset) Sets whether the calendar should scroll togetScrollTime()
every time the date range changes.void
setSelectAllowJsFunction
(JsFunction jsFunction) Sets JavaScript function definition that will be executed every time when the user drags selection to cells.void
setSelectionEnabled
(boolean enabled) Allows the user to highlight multiple days or timeslots by clicking and dragging.void
setSelectLongPressDelay
(Integer delay) Sets the amount of time the user must hold down before a date becomes selectable on touch devices.void
setSelectMinDistance
(int minDistance) Sets the minimum distance the user’s mouse must travel after a mousedown, before a selection is allowed.void
setSelectMirror
(boolean selectMirror) Enables the drawing of a placeholder event while the user is dragging.void
setSelectOverlap
(boolean selectOverlap) Enables to select cells that contains events.void
setSelectOverlapJsFunction
(JsFunction jsFunction) Sets JavaScript function definition that will be executed every time when the user selection tries to occupy cells with events.void
setSlotDuration
(CalendarDuration duration) Sets the interval at which time slots are displayed.void
setSlotLabelInterval
(CalendarDuration duration) Sets the frequency for labeling time slots with text.void
setSlotMaxTime
(CalendarDuration slotMaxTime) Sets the last time slot that will be displayed for each day.void
setSlotMinTime
(CalendarDuration slotMinTime) Sets the first time slot that will be displayed for each day.void
setSnapDuration
(CalendarDuration snapDuration) Sets a value that determines the time interval at which a dragged event will snap to the time axis.void
setTimeZone
(TimeZone timeZone) Sets the timezone to the component.void
setUnselectAuto
(boolean unselectAuto) Sets whether clicking elsewhere on the page will clear the current selection.void
setUnselectCancelSelector
(String cssSelector) Sets the CSS selector that will ignore theisUnselectAuto()
property.void
setValidRange
(LocalDate start, LocalDate end) Sets the date range where the user can navigate and where events can be displayed.void
Sets the end date of valid range.void
setValidRangeStart
(LocalDate start) Sets the start date of valid range.void
setVisibleRange
(LocalDate start, LocalDate end) The visible date range is applied together with generic calendar display modesGenericCalendarDisplayModes
.void
setWeekendsVisible
(boolean visible) Sets whether to include Saturday and Sunday columns in any of the calendar display modes.void
setWeekNumbersVisible
(boolean weekNumbersVisible) Sets whether week numbers should be displayed on the calendar.void
setWindowResizeDelay
(Integer windowResizeDelay) Sets the delay that the calendar will wait before adjusting its size after a window resize occurs.void
unselect()
Clears the current selection.protected void
Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
Methods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
serializer
-
deserializer
-
options
-
jsonFactory
protected elemental.json.JsonFactory jsonFactory -
displayMode
-
currentDate
-
itemsDataProvidersExecutionMap
-
synchronizeOptionsExecution
protected com.vaadin.flow.internal.StateTree.ExecutionRegistration synchronizeOptionsExecution -
incrementalUpdateExecution
protected com.vaadin.flow.internal.StateTree.ExecutionRegistration incrementalUpdateExecution -
datesSetDomRegistration
protected com.vaadin.flow.shared.Registration datesSetDomRegistration -
moreLinkClickDomRegistration
protected com.vaadin.flow.shared.Registration moreLinkClickDomRegistration -
eventClickDomRegistration
protected com.vaadin.flow.shared.Registration eventClickDomRegistration -
eventMouseEnterDomRegistration
protected com.vaadin.flow.shared.Registration eventMouseEnterDomRegistration -
eventMouseLeaveDomRegistration
protected com.vaadin.flow.shared.Registration eventMouseLeaveDomRegistration -
eventDropDomRegistration
protected com.vaadin.flow.shared.Registration eventDropDomRegistration -
eventResizeDomRegistration
protected com.vaadin.flow.shared.Registration eventResizeDomRegistration -
dateClickDomRegistration
protected com.vaadin.flow.shared.Registration dateClickDomRegistration -
selectDomRegistration
protected com.vaadin.flow.shared.Registration selectDomRegistration -
unselectDomRegistration
protected com.vaadin.flow.shared.Registration unselectDomRegistration -
initialized
protected boolean initialized
-
-
Constructor Details
-
JmixFullCalendar
public JmixFullCalendar()
-
-
Method Details
-
getInitialCalendarDisplayMode
- Returns:
- initial calendar display mode or
null
if not set
-
setInitialCalendarDisplayMode
Sets initial calendar display mode that will be shown after attaching component to th UI.The default value is
CalendarDisplayModes.DAY_GRID_MONTH
.The property change is not applied after component attached to the UI.
- Parameters:
displayMode
- initial calendar display mode
-
getCurrentCalendarDisplayMode
- Returns:
- current calendar display mode
-
setCalendarDisplayMode
Switches currently shown display mode to the provided one.- Parameters:
displayMode
- calendar display mode to set
-
addCustomCalendarDisplayMode
Adds custom display mode to the calendar. Then custom display mode can be shown by: Note that it is initial option and dynamically changing/adding/removing custom display modes will not apply after attaching component to the UI.- Parameters:
displayMode
- custom calendar display mode to add
-
removeCustomCalendarDisplayMode
Removes custom calendar display mode.Note that it is initial option and dynamically changing/adding/removing custom display modes will not apply after attaching component to UI.
- Parameters:
customDisplayMode
- custom calendar display mode to remove
-
getCustomCalendarDisplayMode
Returns custom calendar display mode by its ID.- Parameters:
id
- the ID of custom calendar display mode- Returns:
- custom calendar display mode or
null
if there is no display mode with the provided ID
-
getCustomCalendarDisplayModes
- Returns:
- list of custom calendar display modes added to the component
-
getCalendarDisplayModeProperties
public <T extends AbstractCalendarDisplayModeProperties> T getCalendarDisplayModeProperties(CalendarDisplayModes displayMode) Returns properties for the specific calendar display mode. Almost all calendar display modes have a specific set of properties. Moreover, the properties object can override some properties from the component.- Type Parameters:
T
- type of display mode properties- Parameters:
displayMode
- calendar display mode to get properties- Returns:
- properties object that correspond to the provided calendar display mode
-
isWeekNumbersVisible
public boolean isWeekNumbersVisible()- Returns:
true
if week numbers are visible
-
setWeekNumbersVisible
public void setWeekNumbersVisible(boolean weekNumbersVisible) Sets whether week numbers should be displayed on the calendar.The default value is
false
.- Parameters:
weekNumbersVisible
- whether to show week numbers
-
getValidRangeStart
- Returns:
- the start date of valid range or
null
if not set
-
setValidRangeStart
Sets the start date of valid range.See for more information
setValidRange(LocalDate, LocalDate)
.- Parameters:
start
- the start date ornull
to reset value
-
getValidRangeEnd
- Returns:
- the end date of valid range or
null
if not set
-
setValidRangeEnd
Sets the end date of valid range.See for more information
setValidRange(LocalDate, LocalDate)
.- Parameters:
end
- the end date ornull
to reset value
-
setValidRange
Sets the date range where the user can navigate and where events can be displayed.Dates outside the valid range will be grayed-out. The user will not be able to drag or resize events into these areas.
The end date is exclusive. For example, if valid range is
2024-09-01
to2024-09-10
, the September 10th day is not included in the range and will be disabled.Navigation methods won't navigate to invalid range.
- Parameters:
start
- start date of valid range ornull
to reset valueend
- end date of valid range ornull
to reset value
-
getVisibleRangeStart
- Returns:
- start date of visible range or
null
if not set
-
getVisibleRangeEnd
- Returns:
- end date of visible range or
null
if not set
-
setVisibleRange
The visible date range is applied together with generic calendar display modesGenericCalendarDisplayModes
. For instance, you can setGenericCalendarDisplayModes.DAY_GRID
, visible range from2024-09-01
to2024-09-03
and component will show two days.Note the end date is exclusive.
- Parameters:
start
- start date of visible rangeend
- end date of visible range
-
getTimeZone
- Returns:
- component's timezone or
null
if not set
-
setTimeZone
Sets the timezone to the component.The default value is user's timezone. If user does not have a timezone, the system default will be used.
- Parameters:
timeZone
- timezone to set
-
getDate
Returns a date for the current date of the calendar.For month view, it will always be a date between the first and last day of the month. For week views, it will always be a date between the first and last day of the week.
- Returns:
- the current date of the calendar
-
scrollToTime
Scrolls to the specified time in milliseconds.Scrolling to a specific time works when the calendar display mode is either
CalendarDisplayModes.TIME_GRID_DAY
orCalendarDisplayModes.TIME_GRID_WEEK
.- Parameters:
duration
- the time duration
-
scrollToTime
Scrolls to the specified time.Scrolling to a specific time works when the calendar display mode is either
CalendarDisplayModes.TIME_GRID_DAY
orCalendarDisplayModes.TIME_GRID_WEEK
.- Parameters:
localTime
- the time to scroll
-
select
Selects a time range that starts from specified time to next 24h.- Parameters:
start
- date-time to select
-
select
Selects a time range that starts from specified time to next 24h. If all-day istrue
the all-day cell will be selected.- Parameters:
start
- date-time to selectallDay
- whether to select all-day cell
-
select
Selects the date-time range.- Parameters:
start
- start date-time of selectionend
- end date-time of selection
-
select
Selects the date-time range. If all-day istrue
the all-day cell(s) will be selected.- Parameters:
start
- start date-time of selectionend
- end date-time of selectionallDay
- whether to select all-day cell(s)
-
unselect
public void unselect()Clears the current selection. -
isDefaultDayMaxEventRowsEnabled
public boolean isDefaultDayMaxEventRowsEnabled()- Returns:
true
if the component should limit the number of events by height of the day cell
-
setDefaultDayMaxEventRowsEnabled
public void setDefaultDayMaxEventRowsEnabled(boolean enabled) Limits the maximum number of stacked events within a given day.-
true
- limits the number of events by height of the day cell. -
false
- component displays all events as is.
The default value
false
.- Parameters:
enabled
- whether to limit the number of events
-
-
getDayMaxEventRows
- Returns:
- the maximum rows count of events including "more" row or
null
if not set
-
setDayMaxEventRows
Sets rows count of events in day-grid display modes and in "all-day" section in time-grid display modes.Note that "more" row is included to count. For instance, if dayMaxEventRows = 1, only the "more" row will be shown.
Takes precedence over the
setDefaultDayMaxEventRowsEnabled(boolean)
.- Parameters:
maxEventRows
- maximum value of event rows in cell
-
isDefaultDayMaxEventsEnabled
public boolean isDefaultDayMaxEventsEnabled()- Returns:
true
if the component should limit the number of events by height of the day cell
-
setDefaultDayMaxEventsEnabled
public void setDefaultDayMaxEventsEnabled(boolean enabled) Limits the maximum number of stacked events within a given day.-
true
- limits the number of events by height of the day cell. -
false
- component displays all events as is.
The default value
false
.- Parameters:
enabled
- whether to limit the number of events
-
-
getDayMaxEvents
- Returns:
- the maximum rows count of events excluding "more" row or
null
if not set
-
setDayMaxEvents
Sets rows count of events in day-grid display modes and in "all-day" section in time-grid display modes.Note that "more" row is not included to count. For instance, if dayMaxEventRows = 1, one event and the "more" row will be shown.
Takes precedence over the
setDefaultDayMaxEventsEnabled(boolean)
.- Parameters:
maxRows
- maximum value of event rows in cell excluding "more" row
-
getEventMaxStack
- Returns:
- maximum number of events to stack or
null
if not set
-
setEventMaxStack
Sets the maximum number of events that stack top-to-bottom for time-grid display modes.- Parameters:
eventMaxStack
- the maximum number of events that stack. Thenull
or-1
values set default behaviour.
-
getMoreLinkCalendarDisplayMode
- Returns:
- the calendar display mode that should be shown when "more" more link is clicked
or
null
if not set
-
setMoreLinkCalendarDisplayMode
Sets the calendar display mode that should be shown when "more" link is clicked.- Parameters:
displayMode
- the display mode that should be opened
-
getMoreLinkClassNames
- Returns:
- list of CSS class names added to "more" link
-
setMoreLinkClassNames
Sets CSS class names that should be added to "more" link.- Parameters:
classNames
- class names to set
-
addMoreLinkClassName
Adds CSS class name to "more" link.- Parameters:
className
- class name to add
-
addMoreLinkClassNames
Adds class names to "more" link.- Parameters:
classNames
- class names to add
-
removeMoreLinkClassName
Removes CSS class name from "more" link.- Parameters:
className
- class name to remove
-
removeAllMoreLinkClassName
public void removeAllMoreLinkClassName()Removes all CSS class names from "more" link. -
isEventStartEditable
public boolean isEventStartEditable()- Returns:
true
if event start time is editable
-
setEventStartEditable
public void setEventStartEditable(boolean editable) Enables to edit event start time using dragging.Note, this property can be overridden on per-event by
CalendarEvent#getStartEditable()
property.The default value is
false
.- Parameters:
editable
- whether to enable editing event start time
-
isEventDurationEditable
public boolean isEventDurationEditable()- Returns:
true
if event duration is editable
-
setEventDurationEditable
public void setEventDurationEditable(boolean editable) Enables to edit event duration using resizing.Note, this property can be overridden on per-event by
durationEditable
property.The default value is
false
.- Parameters:
editable
- whether to edit event duration
-
isEventResizableFromStart
public boolean isEventResizableFromStart()- Returns:
true
if an event is resizable from start date
-
setEventResizableFromStart
public void setEventResizableFromStart(boolean resizableFromStart) Enables to resize an event from its starting date.The default value is
false
.- Parameters:
resizableFromStart
- whether to resize an event from start
-
getEventDragMinDistance
- Returns:
- drag minimum distance in pixels or
null
if not set
-
setEventDragMinDistance
Sets how many pixels the user’s mouse/touch must move before an event drag activates.The default value is
5
.- Parameters:
minDistance
- minimum distance in pixels
-
getDragRevertDuration
- Returns:
- duration in milliseconds or
null
if not set
-
setDragRevertDuration
Sets the time it takes for an event to revert to its original position after an unsuccessful drag.The default value is
500
.- Parameters:
revertDuration
- duration in milliseconds
-
isDragScroll
public boolean isDragScroll()- Returns:
true
if component scrolls content during event drag-and-drop and date selecting
-
setDragScroll
public void setDragScroll(boolean enabled) Enables to automatically scroll the scroll-containers during event drag-and-drop and date selecting.The default value is
true
.The property change is not applied after component attached to the UI.
- Parameters:
enabled
- whether to enable scrolling
-
getSnapDuration
- Returns:
- snap duration or
null
if not set
-
setSnapDuration
Sets a value that determines the time interval at which a dragged event will snap to the time axis. This also affects the granularity at which selections can be made.The default value is taken from
getSlotDuration()
.- Parameters:
snapDuration
- duration to set
-
isAllMaintainDurationEnabled
public boolean isAllMaintainDurationEnabled()- Returns:
true
if the duration will remain roughly the same before and after it is dragged to or from an all-day section
-
setAllDayMaintainDurationEnabled
public void setAllDayMaintainDurationEnabled(boolean enabled) Determines how an event’s duration should be mutated when it is dragged from a timed section to an all-day section and vice versa.-
true
- the duration will remain roughly the same before and after it is dragged to or from an all-day section. "Roughly" because if an event has a duration with hourly precision, it will be rounded down to the nearest whole-day. -
false
- the event’s duration will be reset togetDefaultAllDayEventDuration()
if it is being dropped in an all-day section orgetDefaultTimedEventDuration()
if it is being dropped in a timed section
false
.- Parameters:
enabled
- whether to maintain duration
-
-
isEventOverlap
public boolean isEventOverlap()- Returns:
true
if events can overlap other events during dragging and resizing
-
setEventOverlap
public void setEventOverlap(boolean enabled) Allows events to overlap each other during dragging and resizing.The default value is
true
.- Parameters:
enabled
- whether to enable event overlap
-
getEventOverlapJsFunction
- Returns:
- event overlap JavaScript function or
null
if not set
-
setEventOverlapJsFunction
Sets JavaScript function definition that will be executed every time when an event is dragged/resized to cell with other events. The function should returntrue
if an event can overlap other event orfalse
otherwise.For instance, function enables event overlapping if events are all-day:
Thecalendar.setEventOverlapJsFunction(new JsFunction(""" function(stillEvent, movingEvent) { return stillEvent.allDay && movingEvent.allDay; } """));
stillEvent
is the event underneath the moving event.The
movingEvent
is the event that is being dragged or resized. Its start and end dates will remain at their original values when the function is called.The available properties of
movingEvent
andstillEvent
you can find in FullCalendar docsNote that JavaScript function takes precedence over the
setEventOverlap(boolean)
. And JavaScript function can be overridden by calendar event's "overlap" property value.- Parameters:
jsFunction
- JavaScript function
-
isSelectionEnabled
public boolean isSelectionEnabled()- Returns:
true
if day or time selection is enabled
-
setSelectionEnabled
public void setSelectionEnabled(boolean enabled) Allows the user to highlight multiple days or timeslots by clicking and dragging.The default value is
false
.- Parameters:
enabled
- whether to enable selection
-
isSelectMirror
public boolean isSelectMirror()- Returns:
true
if component draws an event while the users is dragging
-
setSelectMirror
public void setSelectMirror(boolean selectMirror) Enables the drawing of a placeholder event while the user is dragging.This property applies to time-grid display modes.
The default value is
false
.- Parameters:
selectMirror
- whether to draw a placeholder event
-
isUnselectAuto
public boolean isUnselectAuto()- Returns:
true
if selection should be cleared when clicking on the page
-
setUnselectAuto
public void setUnselectAuto(boolean unselectAuto) Sets whether clicking elsewhere on the page will clear the current selection. Works only ifisSelectionEnabled()
istrue
.The default value is
true
.The property change is not applied after component attached to the UI.
- Parameters:
unselectAuto
- whether option is unselectAuto
-
getUnselectCancelSelector
- Returns:
- the CSS selector or
null
if not set
-
setUnselectCancelSelector
Sets the CSS selector that will ignore theisUnselectAuto()
property. For instance:vaadin-form-layout .custom-text-input
.The property change is not applied after component attached to the UI.
- Parameters:
cssSelector
- CSS selector, e.g. ".my-element"
-
isSelectOverlap
public boolean isSelectOverlap()- Returns:
true
if selection of cells with events is enabled
-
setSelectOverlap
public void setSelectOverlap(boolean selectOverlap) Enables to select cells that contains events.The default value is
true
.- Parameters:
selectOverlap
- whether to enable selecting cells with events
-
getSelectOverlapJsFunction
- Returns:
- select overlap function or
null
if not set
-
setSelectOverlapJsFunction
Sets JavaScript function definition that will be executed every time when the user selection tries to occupy cells with events. The function should returntrue
if a selection can be performed for cell with the provided event orfalse
otherwise.For instance, function enables selection if event is a background:
Thecalendar.setSelectOverlapJsFunction(new JsFunction(""" function (event) { return event.display === 'background'; } """));
event
is the event in the cell.The available properties of
event
you can find in FullCalendar docs- Parameters:
jsFunction
- JavaScript function
-
getSelectAllowJsFunction
- Returns:
- select allow JavaScript function or
null
if not set
-
setSelectAllowJsFunction
Sets JavaScript function definition that will be executed every time when the user drags selection to cells. The function should returntrue
if a selection can be performed for cell with the provided date range orfalse
otherwise.For instance, the function enables selection for today's date and futures:
Thecalendar.setSelectAllowJsFunction(new JsFunction(""" function(selectionInfo) { const currentDate = new Date(); currentDate.setHours(0, 0, 0, 0); return currentDate < selectionInfo.end; } """)
selectionInfo
is object that contains information about date range.The available properties of
selectionInfo
you can find in FullCalendar docs- Parameters:
jsFunction
- JavaScript function
-
getSelectMinDistance
public int getSelectMinDistance()- Returns:
- the minimum distance the user’s mouse must travel after a mousedown, before a selection is allowed
-
setSelectMinDistance
public void setSelectMinDistance(int minDistance) Sets the minimum distance the user’s mouse must travel after a mousedown, before a selection is allowed. A non-zero value is useful for differentiating a selection from a date click event.This property is only applicable to mouse-related interaction. For touch interaction, see
setSelectLongPressDelay(Integer)
.The default value is
0
.The property change is not applied after component attached to the UI.
- Parameters:
minDistance
- minimum distance in pixels
-
getDefaultDayPopoverFormat
- Returns:
- the day popover format or
null
if not set
-
setDefaultDayPopoverFormat
Sets the date format of title of the popover that is shown when "more" link is clicked. By default, component sets localized format from messages when is created.This property act as default format for all display modes and for
CustomCalendarDisplayMode
until specific property won't be set for these display modes. However, all display-mode properties objects by default explicitly specify the format, thus they override this property.As component uses moment plugin for FullCalendar, we should follow the moment.js formatting rules: Moment.js Documentation. For instance, the
"MMM D, YY"
producesSep 9, 24
.The property change is not applied after component attached to the UI.
- Parameters:
format
- format to set
-
getDefaultDayHeaderFormat
- Returns:
- the day header format or
null
if not set
-
setDefaultDayHeaderFormat
Sets the format of the text that will be displayed on the calendar’s column headings. By default, component sets localized format from messages when is created.This property act as default format for all display modes and for
CustomCalendarDisplayMode
until specific property won't be set for these display modes. However, all display-mode properties objects by default explicitly specify the format, thus they override this property.As component uses moment plugin for FullCalendar, we should follow the moment.js formatting rules: Moment.js Documentation. For instance, the
"dd"
producesMo
.The property change is not applied after component attached to the UI.
- Parameters:
format
- format to set
-
getDefaultWeekNumberFormat
- Returns:
- the format of the week number or
null
if not set
-
setDefaultWeekNumberFormat
Sets the format of the week number that will be displayed whenisWeekNumbersVisible()
istrue
. By default, component sets localized format from messages when is created.This property act as default format for all display modes and for
CustomCalendarDisplayMode
until specific property won't be set for these display modes. However, all display-mode properties objects by default explicitly specify the format, thus they override this property.As component uses moment plugin for FullCalendar, we should follow the moment.js formatting rules: Moment.js Documentation. For instance, the
"[Week] w"
producesWeek 1
(1, 2, ... 52, 53).The property change is not applied after component attached to the UI.
- Parameters:
format
- format to set
-
getDefaultSlotLabelFormat
- Returns:
- the slot label format or
null
if not set
-
setDefaultSlotLabelFormat
Sets the format of the text that will be displayed within a time slot. By default, component sets localized format from messages when is created.This property act as default format for all display modes and for
CustomCalendarDisplayMode
until specific property won't be set for these display modes. However, all display-mode properties objects by default explicitly specify the format, thus they override this property.As component uses moment plugin for FullCalendar, we should follow the moment.js formatting rules: Moment.js Documentation. For instance, the
"ha"
produces1 am
(1, 2, ... 12 am/pm).The property change is not applied after component attached to the UI.
- Parameters:
format
- format to set
-
getDefaultEventTimeFormat
- Returns:
- the event time format or
null
if not set
-
setDefaultEventTimeFormat
Sets the format of the time-text that will be displayed on each event. By default, component sets localized format from messages when is created.This property act as default format for all display modes and for
CustomCalendarDisplayMode
until specific property won't be set for these display modes. However, all display-mode properties objects by default explicitly specify the format, thus they override this property.As component uses moment plugin for FullCalendar, we should follow the moment.js formatting rules: Moment.js Documentation. For instance, the
"HH:mm"
produces00:00
(01, 2, ... 23 : 01, 02 ... 59).The property change is not applied after component attached to the UI.
- Parameters:
format
- format to set
-
isWeekendsVisible
public boolean isWeekendsVisible()- Returns:
true
if weekends are visible
-
setWeekendsVisible
public void setWeekendsVisible(boolean visible) Sets whether to include Saturday and Sunday columns in any of the calendar display modes.The default value is
true
- Parameters:
visible
- whether to show weekends
-
isDayHeadersVisible
public boolean isDayHeadersVisible()- Returns:
true
if day headers are visible
-
setDayHeadersVisible
public void setDayHeadersVisible(boolean visible) Sets whether the day headers should appear. It works for day-grid, time-grid and month display modes.The default value is
true
.- Parameters:
visible
- whether to show day headers
-
getSlotDuration
- Returns:
- the interval for displaying time slots or
null
if not set
-
setSlotDuration
Sets the interval at which time slots are displayed.The default value is 30 minutes.
- Parameters:
duration
- the interval to set
-
getSlotLabelInterval
- Returns:
- the frequency for labeling time slots with text or
null
if not set
-
setSlotLabelInterval
Sets the frequency for labeling time slots with text.If not specified, a reasonable value will be automatically computed based on
getSlotDuration()
.When specifying this property, give the
CalendarDuration.ofHours(1)
value, this will cause the header labels to appear on the hour marks, even ifgetSlotDuration()
was hypothetically15
or30
minutes long.- Parameters:
duration
- the interval to set
-
getSlotMinTime
- Returns:
- thr slot minimum time or
null
if not set
-
setSlotMinTime
Sets the first time slot that will be displayed for each day.The default value is
00:00:00
. It means the start time will be at the very beginning of the day (midnight). Determines the first time slot, even when the scrollbars have been scrolled all the way back.- Parameters:
slotMinTime
- slot minimum time to set
-
getSlotMaxTime
- Returns:
- the slot maximum time or
null
if not set
-
setSlotMaxTime
Sets the last time slot that will be displayed for each day. The specified value represents the exclusive end time, meaning the time slot ending at this value will not be included.The default value is
24:00:00
. It means that the end time will be at the very end of the day (midnight). Determines the last slot, even when the scrollbars have been scrolled all the way back.- Parameters:
slotMaxTime
- the slot maximum time
-
getScrollTime
- Returns:
- the scroll time or
null
if not set
-
setScrollTime
Sets the initial scroll position to a specific time.The user will be able to scroll back to see events before this time. If you want to prevent users from doing this, use the
setSlotMinTime(CalendarDuration)
instead.By default, scroll time is reapplied to the calendar whenever the date range changes. To disable this, set
setScrollTimeReset(boolean)
tofalse
.The default value is
06:00:00
.The property change is not applied after component attached to the UI.
- Parameters:
scrollTime
- the time to scroll to
-
isScrollTimeReset
public boolean isScrollTimeReset()- Returns:
true
if the scroll position should be reset every time
-
setScrollTimeReset
public void setScrollTimeReset(boolean scrollTimeReset) Sets whether the calendar should scroll togetScrollTime()
every time the date range changes.By default, whenever the date range changes either via calendar methods or the user actions, the scroll is reset. Set to
false
to disable this behaviour.The default value is
true
.- Parameters:
scrollTimeReset
- whether to reset scroll
-
isDefaultAllDay
public boolean isDefaultAllDay()- Returns:
true
if events withoutallDay
property is shown as all-day
-
setDefaultAllDay
public void setDefaultAllDay(boolean defaultAllDay) Sets the default value for each calendar event'sallDay
property when it is unspecified.If the property is set to
true
, all events withoutallDay
property (e.g. is not specified mapping in data provider or calendar event returnsnull
forgetAllDay()
) will be considered as all-day events.Note, in this case, events without
allDay
property will be shown as all-day events. If such event will be changed by dragging or resizing, and you have listeners for these events, the component will set to calendar eventsetAllDay()
, which can lead to modifying entity/DTO instance.The default value is
false
.- Parameters:
defaultAllDay
- whether to show events as all-day
-
getDefaultAllDayEventDuration
- Returns:
- the default all-day duration or
null
if not set
-
setDefaultAllDayEventDuration
Sets the default duration of all-day events if they don't specifyendDateTime
property.For instance, the property is set to
2 days
. The event that hasallDay = true
and do not haveendDateTime
property, will be shown in all-day section and will occupy two days.Note, calendar event's
endDateTime
property will remain unset, unlesssetForceEventDuration(boolean)
has been set totrue
. In this case, the calendar will explicitly assign end date to an event. If such event will be changed by dragging or resizing, and you have listeners for these events, the component will set to calendar eventsetEndDateTime()
, which can lead to modifying entity/DTO instance.This property only affects events with
allDay = true
.The default value is
1 day
.- Parameters:
duration
- the default all-day duration
-
getDefaultTimedEventDuration
- Returns:
- the default time duration or
null
if not set
-
setDefaultTimedEventDuration
Sets the default duration for timed events if they don't specifyendDateTime
property.For instance, the property is set to
2 hours
. The event that hasallDay = false
and do not haveendDateTime
property, will occupy two hours in time slots.Note, calendar event's end property will remain unset, unless
setForceEventDuration(boolean)
has been set totrue
. In this case, the calendar will explicitly assign end date to an event. If such event will be changed by dragging or resizing, and you have listeners for these events, the component will set to calendar eventsetEndDateTime()
, which can lead to modifying entity/DTO instance.This property only affects events with
allDay = false
.The default value is
1 hour
.- Parameters:
duration
- the default time duration
-
isForceEventDuration
public boolean isForceEventDuration()- Returns:
true
ifend
property value is assigned by component to events that do not have it, or returnsnull
if not set
-
setForceEventDuration
public void setForceEventDuration(boolean forceEventDuration) Makes the component to assignend
property value to events if they do not have it.Note, if event does not specify
end
property, the component will set it explicitly. If such event will be changed by dragging or resizing, and you have listeners for these events, the component will set to calendar eventsetEndDateTime()
, which can lead to modifying entity/DTO instance.The default value is
false
.- Parameters:
forceEventDuration
- whether to assign end date to events
-
getInitialDate
- Returns:
- the initial date to show or
null
if not set
-
setInitialDate
Sets the initial date that will be displayed when the component is attached to UI.If not specified, the current date will be used.
The property change is not applied after component attached to the UI.
- Parameters:
initialDate
- initial date to show
-
getDateIncrement
- Returns:
- the step duration or
null
if not set
-
setDateIncrement
Defines the step ofnavigateToNext()
/navigateToPrevious()
methods.It is unnecessary to define this property if predefined display modes are used, because the step is calculated automatically based on display mode.
For
CustomCalendarDisplayMode
theCustomCalendarDisplayMode.getDuration()
will be used as step if specified.- Parameters:
dateIncrement
- the step duration
-
getDateAlignment
- Returns:
- the first visible date of
CustomCalendarDisplayMode
ornull
if not set
-
setDateAlignment
Sets the first visible date ofCustomCalendarDisplayMode
.When a custom calendar display mode is being used, and you’d like to guarantee that the calendar begins at a certain interval, like the start-of-week or start-of-month, specify a value like
"week"
or"month"
. If the property is not specified, a reasonable default will be generated based on the display mode’s duration.If a display mode’s range is explicitly defined with
setVisibleRange(LocalDate, LocalDate)
, this property will be ignored.- Parameters:
alignment
- the first visible date, like"week"
or"month"
-
isEventInteractive
public boolean isEventInteractive()- Returns:
true
if all events are focusable/tabbable
-
setEventInteractive
public void setEventInteractive(boolean interactive) Enables all events to be focusable/tabbable.Note, calendar events can override this value if they specify
getInteractive()
.The default value is
false
.- Parameters:
interactive
- whether events should be focusable/tabbable
-
getEventLongPressDelay
- Returns:
- the event long press delay or
null
if not set
-
setEventLongPressDelay
Sets amount of time the user must hold down before an event becomes draggable.For touch devices.
The default value is
1000
milliseconds.- Parameters:
delay
- the delay to set- See Also:
-
getSelectLongPressDelay
- Returns:
- the select long press delay or
null
if not set
-
setSelectLongPressDelay
Sets the amount of time the user must hold down before a date becomes selectable on touch devices.The default value is
1000
milliseconds.- Parameters:
delay
- the delay to set- See Also:
-
isNowIndicatorVisible
public boolean isNowIndicatorVisible()- Returns:
true
if now indicator is visible
-
setNowIndicatorVisible
public void setNowIndicatorVisible(boolean nowIndicatorVisible) Enables displaying a marker indicating the current time. The property applies in time-grid display modes.The default value is
false
.The property change is not applied after component attached to the UI.
- Parameters:
nowIndicatorVisible
- whether to display a now indicator
-
isExpandRows
public boolean isExpandRows()- Returns:
true
if rows are expanded in time-grid display modes
-
setExpandRows
public void setExpandRows(boolean expandRows) Enables to expand rows of time-grid display modes if they don’t take up the entire height.The default value is
false
.- Parameters:
expandRows
- whether to expand rows
-
getWindowResizeDelay
- Returns:
- the delay or
null
if not set
-
setWindowResizeDelay
Sets the delay that the calendar will wait before adjusting its size after a window resize occurs.The default value is
100
.- Parameters:
windowResizeDelay
- the delay in milliseconds
-
getEventBackgroundColor
- Returns:
- event background color or
null
if not set
-
setEventBackgroundColor
Sets the background color for all events on the calendar.Note, calendar events can override this value if they specify
getBackgroundColor()
.Supported values are:
-
#f00
-
#ff0000
-
rgb(255,0,0)
-
Color name -
red
- Parameters:
eventBackgroundColor
- background color to set
-
-
getEventBorderColor
- Returns:
- the event border color or
null
if not set
-
setEventBorderColor
Sets the border color for all events on the calendar.Note, calendar events can override this value if they specify
getBorderColor()
.Supported values are:
-
#f00
-
#ff0000
-
rgb(255,0,0)
-
Color name -
red
- Parameters:
borderColor
- event border color
-
-
getEventTextColor
- Returns:
- the event text color or
null
if not set
-
setEventTextColor
Sets the text color for all events on the calendar.Note, calendar events can override this value if they specify
getTextColor()
.Supported values are:
-
#f00
-
#ff0000
-
rgb(255,0,0)
-
Color name -
red
The color applies in time-grid display modes and for all-day events in day-grid display modes.
- Parameters:
textColor
- event text color
-
-
isDisplayEventTime
public boolean isDisplayEventTime()- Returns:
true
if time-text of events is shown
-
setDisplayEventTime
public void setDisplayEventTime(boolean displayEventTime) Determines visibility of time text of each event.The property applies to timed-events (not all-day). If set to
true
, time text will always be displayed on the event. If set tofalse
, time text will never be displayed on the event. Events that are all-day will never display time text anyhow.The default value is
true
.- Parameters:
displayEventTime
- whether to display time text of events
-
getNextDayThreshold
- Returns:
- the next day threshold time or
null
if not set
-
setNextDayThreshold
Sets the minimum time that event's end date should achieve to render event as it if were on that day.For instance, the property is set to
09:00:00
. And there is an event with dates:-
start -
2024-09-01T20:00:00
; -
end -
2024-09-02T02:00:00
;
So, the event spans to another day, but it will be rendered as a one-day event, because we specified the
nextDayThreshold
property. However, If the event has end date -2024-09-02T10:00:00
, it will be rendered as two-day event.Only affects timed events that appear on whole-days cells. Whole-day cells occur in day-grid display modes and the all-day slots in the time-grid display modes.
Note that this property is ignored when event's
allDay
property is set totrue
.The default value is
00:00:00
.- Parameters:
nextDayThreshold
- the next day threshold time- See Also:
-
start -
-
isEventOrderStrict
public boolean isEventOrderStrict()- Returns:
true
if the component strictly follows the specified event order
-
setEventOrderStrict
public void setEventOrderStrict(boolean eventOrderStrict) Enables the component to strictly follow the specified event order.By default, this property is
false
, meaning the event order is not strict and compactness will be prioritized over following event order exactly.- Parameters:
eventOrderStrict
- whether to strictly follow event order- See Also:
-
getEventOrder
- Returns:
- list of properties involved in the sorting process
-
setEventOrder
Sets the list of calendar event properties that should participate in sorting. It is also available to specify properties from event'sadditionalProperties
.For most calendar display modes, this property determines the vertical ordering of events within the same day. For time-grid display modes however, it determines the horizontal ordering of events within the same time slot.
The default value puts earlier events first. If tied, it puts longer events first. If still tied, it puts all-day events first. If still tied, orders events by title, alphabetically.
If putting a lower-precedent event before a higher-precedent improves compactness, the algorithm will do so. To disable this behavior, set
setEventOrderStrict(boolean)
totrue
.The provided properties are sorted in ascending order. If a property is prefixed with a minus sign like "-title", sorting will be in descending order.
- Parameters:
eventOrder
- list of properties- See Also:
-
getEventOrderJsFunction
- Returns:
- event order JavaScript function or
null
if not set
-
setEventOrderJsFunction
Sets JavaScript function definition that should sort event in the same day cell or time slot. The function should return-1
if first event is "less" than second one, and1
if the first event is "greater" than second one.For instance, function sorts by additional property:
Thecalendar.setEventOrderJsFunction(new JsFunction(""" function (event1, event2) { if (event1.priority === event2.priority) { return 0; } return event1.priority > event2.priority ? 1 : -1; } """));
event1
is the first event to be compared.The
event2
is the second event to be compared.The available properties of
event1
andevent2
you can find in FullCalendar docsNote that JavaScript function takes precedence over the
setEventOrder(List)
.- Parameters:
jsFunction
- JavaScript function- See Also:
-
isProgressiveEventRendering
public boolean isProgressiveEventRendering()- Returns:
true
if progressive event rendering is enabled
-
setProgressiveEventRendering
public void setProgressiveEventRendering(boolean progressiveEventRendering) Enables rendering of events from the data provider as soon as the events are loaded.-
true
- renders each data provider as it is received. Will result in more renders. -
false
- waits until all data providers have received their data and then renders everything at once, resulting in fewer renders.
The default value is
false
.- Parameters:
progressiveEventRendering
- whether to enable progressive event rendering
-
-
createJsonFactory
protected elemental.json.JsonFactory createJsonFactory() -
createSerializer
-
createDeserializer
-
createOptions
-
inverseDuration
-
requestUpdateOptions
protected void requestUpdateOptions(boolean onlyDirty) -
performUpdateOptions
protected void performUpdateOptions(boolean onlyDirty) -
performCompleteInit
protected void performCompleteInit() -
updateInitialOptions
protected void updateInitialOptions() -
attachCalendarOptionChangeListener
protected void attachCalendarOptionChangeListener() -
onOptionChange
-
attachDatesSetDomEventListener
protected void attachDatesSetDomEventListener() -
attachMoreLinkClickDomEventListener
protected void attachMoreLinkClickDomEventListener() -
attachEventClickDomEventListener
protected void attachEventClickDomEventListener() -
detachEventClickDomEventListener
protected void detachEventClickDomEventListener() -
attachEventMouseEnterDomEventListener
protected void attachEventMouseEnterDomEventListener() -
detachEventMouseEnterDomEventListener
protected void detachEventMouseEnterDomEventListener() -
attachEventMouseLeaveDomEventListener
protected void attachEventMouseLeaveDomEventListener() -
detachEventMouseLeaveDomEventListener
protected void detachEventMouseLeaveDomEventListener() -
attachEventDropDomEventListener
protected void attachEventDropDomEventListener() -
detachEventDropDomEventListener
protected void detachEventDropDomEventListener() -
attachEventResizeDomEventListener
protected void attachEventResizeDomEventListener() -
detachEventResizeDomEventListener
protected void detachEventResizeDomEventListener() -
attachDateClickDomEventListener
protected void attachDateClickDomEventListener() -
detachDateClickDomEventListener
protected void detachDateClickDomEventListener() -
attachSelectDomEventListener
protected void attachSelectDomEventListener() -
detachSelectDomEventListener
protected void detachSelectDomEventListener() -
attachUnselectDomEventListener
protected void attachUnselectDomEventListener() -
detachUnselectDomEventListener
protected void detachUnselectDomEventListener() -
onEventClick
-
onEventMouseEnter
-
onEventMouseLeave
-
onDatesSet
-
onMoreLinkClick
-
onEventDrop
-
onEventResize
-
onDateClick
-
onSelect
-
onUnselect
-
getDisplayMode
-
fetchCalendarItems
-
getMoreLinkClassNames
@ClientCallable protected elemental.json.JsonArray getMoreLinkClassNames(elemental.json.JsonObject jsonContext) -
getDayHeaderClassNames
@ClientCallable protected elemental.json.JsonArray getDayHeaderClassNames(elemental.json.JsonObject jsonContext) -
getDayCellClassNames
@ClientCallable protected elemental.json.JsonArray getDayCellClassNames(elemental.json.JsonObject jsonContext) -
getSlotLabelClassNames
@ClientCallable protected elemental.json.JsonArray getSlotLabelClassNames(elemental.json.JsonObject jsonContext) -
getNowIndicatorClassNames
@ClientCallable protected elemental.json.JsonArray getNowIndicatorClassNames(elemental.json.JsonObject jsonContext) -
getDayCellBottomTextInfo
@ClientCallable protected elemental.json.JsonObject getDayCellBottomTextInfo(elemental.json.JsonObject jsonContext) -
addDataProvidersOnAttach
protected void addDataProvidersOnAttach() -
onAttach
protected void onAttach(com.vaadin.flow.component.AttachEvent attachEvent) - Overrides:
onAttach
in classcom.vaadin.flow.component.Component
-