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
FieldsModifier and TypeFieldDescriptionprotected booleanprotected Integerprotected Integerprotected Stringprotected booleanFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanvoidsetFixedWeekCount(boolean fixedWeekCount) Determines the number of displayed weeks.voidsetMultiMonthMaxColumns(Integer multiMonthMaxColumns) Sets the maximum columns of months that the display mode will attempt to render.voidsetMultiMonthMinWidth(Integer multiMonthMinWidth) Sets thw minimum width of each mini-month.voidsetMultiMonthTitleFormat(String format) Sets the format of the text above each month.voidsetShowNonCurrentDates(boolean showNonCurrentDates) Determines displaying dates from previous and next months.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
-
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
nullif 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
nullvalue 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:
trueif calendar displays fixed week count
-
setFixedWeekCount
public void setFixedWeekCount(boolean fixedWeekCount) Determines the number of displayed weeks.If
true, the calendar will always be6weeks tall. Iffalse, the calendar will have either4,5, or6weeks, depending on the month.The default value is
true.- Parameters:
fixedWeekCount- whether to display fixed week count
-
isShowNonCurrentDates
public boolean isShowNonCurrentDates()- Returns:
trueif 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
-