Class CustomCalendarDisplayMode
java.lang.Object
io.jmix.fullcalendarflowui.kit.component.model.option.CalendarOption
io.jmix.fullcalendarflowui.kit.component.model.AbstractCalendarDisplayModeProperties
io.jmix.fullcalendarflowui.kit.component.model.CustomCalendarDisplayMode
- All Implemented Interfaces:
Serializable
Custom calendar display mode properties. It enables to create new display mode with custom date range and use it
along with other display modes. If a date range is not specified it can be managed by
JmixFullCalendar.setVisibleRange(LocalDate, LocalDate).- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.fullcalendarflowui.kit.component.model.option.CalendarOption
CalendarOption.OptionChangeEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CalendarDisplayModeprotected Integerprotected CalendarDisplayModeprotected CalendarDurationFields inherited from class io.jmix.fullcalendarflowui.kit.component.model.AbstractCalendarDisplayModeProperties
propertiesFields inherited from class io.jmix.fullcalendarflowui.kit.component.model.option.CalendarOption
dirty, eventBus, name -
Constructor Summary
ConstructorsConstructorDescriptionCreates new instance of custom display mode with the specified ID.CustomCalendarDisplayMode(String id, @Nullable CalendarDisplayMode baseDisplayMode) Creates new instance of custom display mode with the specified ID and base display mode:GenericCalendarDisplayModes. -
Method Summary
Modifier and TypeMethodDescription@Nullable Integer@Nullable CalendarDurationvoidsetDayCount(@Nullable Integer dayCount) Sets the exact number of days displayed in a custom display mode, regardless ofJmixFullCalendar.isWeekendsVisible()or hidden days.voidsetDuration(@Nullable CalendarDuration duration) Sets the exact duration of a custom display mode.withDayCount(@Nullable Integer dayCount) Sets the exact number of days displayed in a custom display mode, regardless ofJmixFullCalendar.isWeekendsVisible()or hidden days.withDuration(@Nullable CalendarDuration duration) Sets the exact duration of a custom display mode.Methods inherited from class io.jmix.fullcalendarflowui.kit.component.model.AbstractCalendarDisplayModeProperties
addProperty, getProperties, removePropertyMethods inherited from class io.jmix.fullcalendarflowui.kit.component.model.option.CalendarOption
addChangeListener, fireChangeEvent, getName, getValueToSerialize, isDirty, markAsDirty, unmarkAsDirty
-
Field Details
-
displayMode
-
baseDisplayMode
-
duration
-
dayCount
-
-
Constructor Details
-
CustomCalendarDisplayMode
Creates new instance of custom display mode with the specified ID. The created custom display mode will be based onGenericCalendarDisplayModes.DAY_GRID.- Parameters:
id- ID to pass
-
CustomCalendarDisplayMode
Creates new instance of custom display mode with the specified ID and base display mode:GenericCalendarDisplayModes.- Parameters:
id- ID to passbaseDisplayMode- the display mode to base on
-
-
Method Details
-
getDisplayMode
- Returns:
- calendar display mode object from the ID
-
getBaseDisplayMode
- Returns:
- the type of custom calendar display mode
-
getDuration
-
setDuration
Sets the exact duration of a custom display mode.Takes precedence over the
setDayCount(Integer).- Parameters:
duration- the duration to set
-
withDuration
Sets the exact duration of a custom display mode. SeesetDuration(CalendarDuration).- Parameters:
duration- the duration to set- Returns:
- current instance of custom display mode
-
getDayCount
-
setDayCount
Sets the exact number of days displayed in a custom display mode, regardless ofJmixFullCalendar.isWeekendsVisible()or hidden days.- Parameters:
dayCount- day count to set
-
withDayCount
Sets the exact number of days displayed in a custom display mode, regardless ofJmixFullCalendar.isWeekendsVisible()or hidden days. SeesetDayCount(Integer).- Parameters:
dayCount- day count to set- Returns:
- current instance of custom display mode
-