Class MultiMonthYearProperties
- All Implemented Interfaces:
Serializable
CalendarDisplayModes.MULTI_MONTH_YEAR
.
The properties can be retrieved from JmixFullCalendar.getCalendarDisplayModeProperties(CalendarDisplayModes)
.
For instance:
calendar.getCalendarDisplayModeProperties(CalendarDisplayModes.MULTI_MONTH_YEAR);
- 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 boolean
protected Integer
protected Integer
protected String
protected boolean
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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
void
setFixedWeekCount
(boolean fixedWeekCount) Determines the number of displayed weeks.void
setMultiMonthMaxColumns
(Integer multiMonthMaxColumns) Sets the maximum columns of months that the display mode will attempt to render.void
setMultiMonthMinWidth
(Integer multiMonthMinWidth) Sets thw minimum width of each mini-month.void
setMultiMonthTitleFormat
(String format) Sets the format of the text above each month.void
setShowNonCurrentDates
(boolean showNonCurrentDates) Determines displaying dates from previous and next months.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
-
multiMonthMaxColumns
-
multiMonthMinWidth
-
multiMonthTitleFormat
-
fixedWeekCount
protected boolean fixedWeekCount -
showNonCurrentDates
protected boolean showNonCurrentDates
-
-
Constructor Details
-
MultiMonthYearProperties
public MultiMonthYearProperties()
-
-
Method Details
-
getMultiMonthMaxColumns
- Returns:
- the maximum columns of months or
null
if not set
-
setMultiMonthMaxColumns
Sets the maximum columns of months that the display mode will attempt to render.By default, the display mode will attempt to display 3 columns of mini-months. If there is insufficient space, requiring each month to be smaller than
getMultiMonthMinWidth()
, fewer columns will be displayed.The default value is
3
.- Parameters:
multiMonthMaxColumns
- maximum columns of months
-
getMultiMonthMinWidth
-
setMultiMonthMinWidth
Sets thw minimum width of each mini-month. The component will not allow mini-month to be become smaller than this value.If the available width requires each mini-month to become smaller than this pixel value, the mini-months will wrap to subsequent rows instead.
The default value is
350
.- Parameters:
multiMonthMinWidth
- minimum width in pixels
-
getMultiMonthTitleFormat
-
setMultiMonthTitleFormat
Sets the format of the text above each month. By default, component sets localized format from messages when is created.The
null
value resets day format to FullCalendar's default.As component uses moment plugin for FullCalendar, we should follow the moment.js formatting rules: Moment.js Documentation
For instance, the
"MMM"
producesSep
(Nov
,Dec
, etc.).- Parameters:
format
- format to set
-
isFixedWeekCount
public boolean isFixedWeekCount()- Returns:
true
if calendar displays fixed week count
-
setFixedWeekCount
public void setFixedWeekCount(boolean fixedWeekCount) Determines the number of displayed weeks.If
true
, the calendar will always be6
weeks tall. Iffalse
, the calendar will have either4
,5
, or6
weeks, depending on the month.The default value is
true
.- Parameters:
fixedWeekCount
- whether to display fixed week count
-
isShowNonCurrentDates
public boolean isShowNonCurrentDates()- Returns:
true
if calendar shows dates from next/previous months
-
setShowNonCurrentDates
public void setShowNonCurrentDates(boolean showNonCurrentDates) Determines displaying dates from previous and next months.The default value is
true
.- Parameters:
showNonCurrentDates
- whether to show dates from next/previous months
-