Class AbstractDayGridProperties
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DayGridDayProperties
,DayGridMonthProperties
,DayGridWeekProperties
,DayGridYearProperties
- 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 String
protected String
protected boolean
protected String
protected String
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
void
setDayHeaderFormat
(String format) Sets the format of the text that will be displayed on the calendar’s column headings.void
setDayPopoverFormat
(String format) Sets the date format of title of the popover that is shown when "more" link is clicked.void
setDisplayEventEnd
(boolean displayEventEnd) Determines an event's end time visibility.void
setEventTimeFormat
(String format) Sets the format of the time-text that will be displayed on each event.void
setWeekNumberFormat
(String format) Sets the format of the week number that will be displayed whenJmixFullCalendar.isWeekNumbersVisible()
istrue
.By default, component sets localized format from messages when is created.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
-
dayPopoverFormat
-
dayHeaderFormat
-
weekNumberFormat
-
eventTimeFormat
-
displayEventEnd
protected boolean displayEventEnd
-
-
Constructor Details
-
AbstractDayGridProperties
-
-
Method Details
-
getDayHeaderFormat
- Returns:
- the day header format or
null
if not set
-
setDayHeaderFormat
Sets the format of the text that will be displayed on the calendar’s column headings. By default, component sets localized format from messages when is created.The
null
value makes component to use value fromJmixFullCalendar.getDefaultDayHeaderFormat()
.As component uses moment plugin for FullCalendar, we should follow the moment.js formatting rules: Moment.js Documentation
For instance, the
"dd"
producesMo
.- Parameters:
format
- format to set
-
getWeekNumberFormat
- Returns:
- the format of the week number or
null
if not set
-
setWeekNumberFormat
Sets the format of the week number that will be displayed whenJmixFullCalendar.isWeekNumbersVisible()
istrue
.By default, component sets localized format from messages when is created.The
null
value makes component to use value fromJmixFullCalendar.getDefaultWeekNumberFormat()
.As component uses moment plugin for FullCalendar, we should follow the moment.js formatting rules: Moment.js Documentation
For instance, the
"[Week] w"
producesWeek 1
(1, 2, ... 52, 53).- Parameters:
format
- format to set
-
getEventTimeFormat
- Returns:
- the event time format or
null
if not set
-
setEventTimeFormat
Sets the format of the time-text that will be displayed on each event. By default, component sets localized format from messages when is created.The
null
value makes component to use value fromJmixFullCalendar.getDefaultEventTimeFormat()
.As component uses moment plugin for FullCalendar, we should follow the moment.js formatting rules: Moment.js Documentation
For instance, the
"HH:mm"
produces00:00
(01, 2, ... 24 : 01, 02 ... 59).- Parameters:
format
- format to set
-
getDayPopoverFormat
- Returns:
- the day popover format or
null
if not set
-
setDayPopoverFormat
Sets the date format of title of the popover that is shown when "more" link is clicked. By default, component sets localized format from messages when is created.The
null
value makes component to use value fromJmixFullCalendar.getDefaultDayPopoverFormat()
.As component uses moment plugin for FullCalendar, we should follow the moment.js formatting rules: Moment.js Documentation
For instance, the
"MMM D, YY"
producesSep 9, 24
.- Parameters:
format
- format to set
-
isDisplayEventEnd
public boolean isDisplayEventEnd()- Returns:
true
if an event's end time is visible
-
setDisplayEventEnd
public void setDisplayEventEnd(boolean displayEventEnd) Determines an event's end time visibility.By default
true
forCalendarDisplayModes.DAY_GRID_DAY
andfalse
for other day-grid display modes.- Parameters:
displayEventEnd
- whether to display end time
-