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
Modifier and TypeFieldDescriptionprotected CalendarDisplayMode
protected Integer
protected CalendarDisplayMode
protected CalendarDuration
Fields inherited from class io.jmix.fullcalendarflowui.kit.component.model.AbstractCalendarDisplayModeProperties
properties
Fields inherited from class io.jmix.fullcalendarflowui.kit.component.model.option.CalendarOption
dirty, eventBus, name
-
Constructor Summary
ConstructorDescriptionCreates new instance of custom display mode with the specified ID.CustomCalendarDisplayMode
(String id, CalendarDisplayMode baseDisplayMode) Creates new instance of custom display mode with the specified ID and base display mode:GenericCalendarDisplayModes
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setDayCount
(Integer dayCount) Sets the exact number of days displayed in a custom display mode, regardless ofJmixFullCalendar.isWeekendsVisible()
or hidden days.void
setDuration
(CalendarDuration duration) Sets the exact duration of a custom display mode.withDayCount
(Integer dayCount) Sets the exact number of days displayed in a custom display mode, regardless ofJmixFullCalendar.isWeekendsVisible()
or hidden days.withDuration
(CalendarDuration duration) Sets the exact duration of a custom display mode.Methods inherited from class io.jmix.fullcalendarflowui.kit.component.model.AbstractCalendarDisplayModeProperties
addProperty, getProperties, removeProperty
Methods 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
-