Class DisplayModeInfo
java.lang.Object
io.jmix.fullcalendarflowui.component.event.DisplayModeInfo
Class contains information about a calendar's display mode, such as a date range.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final LocalDate
protected final LocalDate
protected final LocalDate
protected final LocalDate
protected final CalendarDisplayMode
-
Constructor Summary
ConstructorDescriptionDisplayModeInfo
(LocalDate activeStart, LocalDate activeEnd, LocalDate currentStart, LocalDate currentEnd, CalendarDisplayMode displayMode) -
Method Summary
Modifier and TypeMethodDescriptionReturns a date that is the last visible day.Returns a date that is the first visible day.Returns a date that marks the end of the interval represented by the display mode.Returns a date that marks the beginning of the interval represented by the display mode.
-
Field Details
-
activeStart
-
activeEnd
-
currentStart
-
currentEnd
-
displayMode
-
-
Constructor Details
-
DisplayModeInfo
public DisplayModeInfo(LocalDate activeStart, LocalDate activeEnd, LocalDate currentStart, LocalDate currentEnd, CalendarDisplayMode displayMode)
-
-
Method Details
-
getActiveStartDate
Returns a date that is the first visible day. In month display mode, this value is often before the first day of the month, because most months do not begin on the first day-of-week.- Returns:
- a date that is the first visible day
-
getActiveEndDate
Returns a date that is the last visible day.Note, this value is exclusive.
- Returns:
- a date that is the last visible day
-
getCurrentStartDate
Returns a date that marks the beginning of the interval represented by the display mode. For example, in month mode, this will be the first day of the month. This value disregards hidden days.- Returns:
- a date that marks the beginning of the interval represented by the display mode
-
getCurrentEndDate
Returns a date that marks the end of the interval represented by the display mode.Note, this value is exclusive. For example, in month mode, this will be the day after the last day of the month. This value disregards hidden days.
- Returns:
- a date that marks the end of the interval represented by the display mode
-
getDisplayMode
- Returns:
- current calendar's display mode
-