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
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected booleanprotected Stringprotected StringFields 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 TypeMethodDescriptionbooleanvoidsetDayHeaderFormat(String format) Sets the format of the text that will be displayed on the calendar’s column headings.voidsetDayPopoverFormat(String format) Sets the date format of title of the popover that is shown when "more" link is clicked.voidsetDisplayEventEnd(boolean displayEventEnd) Determines an event's end time visibility.voidsetEventTimeFormat(String format) Sets the format of the time-text that will be displayed on each event.voidsetWeekNumberFormat(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, removePropertyMethods 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
nullif 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
nullvalue 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
nullif 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
nullvalue 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
nullif 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
nullvalue 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
nullif 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
nullvalue 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:
trueif an event's end time is visible
-
setDisplayEventEnd
public void setDisplayEventEnd(boolean displayEventEnd) Determines an event's end time visibility.By default
trueforCalendarDisplayModes.DAY_GRID_DAYandfalsefor other day-grid display modes.- Parameters:
displayEventEnd- whether to display end time
-