Class DayHeaderClassNamesContext
java.lang.Object
io.jmix.fullcalendarflowui.component.event.AbstractFullCalendarContext
io.jmix.fullcalendarflowui.component.event.DayHeaderClassNamesContext
The context for generating class names that day header cell will use.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final LocalDateprotected final DayOfWeekprotected final DisplayModeInfoprotected final booleanprotected final booleanprotected final booleanprotected final booleanprotected final booleanFields inherited from class io.jmix.fullcalendarflowui.component.event.AbstractFullCalendarContext
fullCalendar -
Constructor Summary
ConstructorsConstructorDescriptionDayHeaderClassNamesContext(FullCalendar fullCalendar, LocalDate date, DayOfWeek dayOfWeek, boolean isDisabled, boolean isFuture, boolean isOther, boolean isPast, boolean isToday, DisplayModeInfo displayModeInfo) -
Method Summary
Modifier and TypeMethodDescriptiongetDate()Note, forCalendarDisplayModes.DAY_GRID_MONTHandCalendarDisplayModes.DAY_GRID_YEARit returnsnullvalue.booleanCell can be disabled, for instance, if it is not in valid date range.booleanisFuture()Note, forCalendarDisplayModes.DAY_GRID_MONTHandCalendarDisplayModes.DAY_GRID_YEARit always returnsfalsevalue.booleanisOther()Note, forCalendarDisplayModes.DAY_GRID_MONTHandCalendarDisplayModes.DAY_GRID_YEARit always returnsfalsevalue.booleanisPast()Note, forCalendarDisplayModes.DAY_GRID_MONTHandCalendarDisplayModes.DAY_GRID_YEARit always returnsfalsevalue.booleanisToday()Note, forCalendarDisplayModes.DAY_GRID_MONTHandCalendarDisplayModes.DAY_GRID_YEARit always returnsfalsevalue.Methods inherited from class io.jmix.fullcalendarflowui.component.event.AbstractFullCalendarContext
getFullCalendar
-
Field Details
-
date
-
dayOfWeek
-
isDisabled
protected final boolean isDisabled -
isFuture
protected final boolean isFuture -
isOther
protected final boolean isOther -
isPast
protected final boolean isPast -
isToday
protected final boolean isToday -
displayModeInfo
-
-
Constructor Details
-
DayHeaderClassNamesContext
public DayHeaderClassNamesContext(FullCalendar fullCalendar, @Nullable LocalDate date, DayOfWeek dayOfWeek, boolean isDisabled, boolean isFuture, boolean isOther, boolean isPast, boolean isToday, DisplayModeInfo displayModeInfo)
-
-
Method Details
-
getDate
Note, forCalendarDisplayModes.DAY_GRID_MONTHandCalendarDisplayModes.DAY_GRID_YEARit returnsnullvalue.- Returns:
- date that corresponds to day header cell
-
getDayOfWeek
- Returns:
- day header's day of week
-
isDisabled
public boolean isDisabled()Cell can be disabled, for instance, if it is not in valid date range. SeeJmixFullCalendar.setValidRange(LocalDate, LocalDate).Note, for
CalendarDisplayModes.DAY_GRID_MONTHandCalendarDisplayModes.DAY_GRID_YEARit always returnsfalsevalue.- Returns:
trueif day header cell is disabled
-
isFuture
public boolean isFuture()Note, forCalendarDisplayModes.DAY_GRID_MONTHandCalendarDisplayModes.DAY_GRID_YEARit always returnsfalsevalue.- Returns:
- whether the day header cell's date is in future compared with today's date
-
isOther
public boolean isOther()Note, forCalendarDisplayModes.DAY_GRID_MONTHandCalendarDisplayModes.DAY_GRID_YEARit always returnsfalsevalue.- Returns:
- whether the day header cell's date is in other month
-
isPast
public boolean isPast()Note, forCalendarDisplayModes.DAY_GRID_MONTHandCalendarDisplayModes.DAY_GRID_YEARit always returnsfalsevalue.- Returns:
- whether the day header cell's date is in past compared with today's date
-
isToday
public boolean isToday()Note, forCalendarDisplayModes.DAY_GRID_MONTHandCalendarDisplayModes.DAY_GRID_YEARit always returnsfalsevalue.- Returns:
- whether the day header cell's date is today
-
getDisplayModeInfo
- Returns:
- information about current calendar's display mode
-