Class NowIndicatorClassNamesContext
java.lang.Object
io.jmix.fullcalendarflowui.component.event.AbstractFullCalendarContext
io.jmix.fullcalendarflowui.component.event.NowIndicatorClassNamesContext
The context for generating class names for "now" indicator in timed display modes:
CalendarDisplayModes.TIME_GRID_DAY
and CalendarDisplayModes.TIME_GRID_WEEK
.-
Field Summary
Modifier and TypeFieldDescriptionprotected final LocalDateTime
protected final DisplayModeInfo
protected final boolean
Fields inherited from class io.jmix.fullcalendarflowui.component.event.AbstractFullCalendarContext
fullCalendar
-
Constructor Summary
ConstructorDescriptionNowIndicatorClassNamesContext
(FullCalendar fullCalendar, boolean isAxis, LocalDateTime dateTime, DisplayModeInfo displayModeInfo) -
Method Summary
Modifier and TypeMethodDescriptionReturns date-time as is from component without transformation.boolean
isAxis()
Methods inherited from class io.jmix.fullcalendarflowui.component.event.AbstractFullCalendarContext
getFullCalendar
-
Field Details
-
isAxis
protected final boolean isAxis -
dateTime
-
displayModeInfo
-
-
Constructor Details
-
NowIndicatorClassNamesContext
public NowIndicatorClassNamesContext(FullCalendar fullCalendar, boolean isAxis, LocalDateTime dateTime, DisplayModeInfo displayModeInfo)
-
-
Method Details
-
isAxis
public boolean isAxis()- Returns:
true
if class names will be applied for now-indicator's arrow, otherwise class names will be applied for now-indicator's line
-
getDateTime
Returns date-time as is from component without transformation. It means that value corresponds component's TimeZone.For now-indicator's line the time part will be
00:00:00
.- Returns:
- indicator's date-time
-
getDisplayModeInfo
- Returns:
- information about current calendar's display mode
-