Class AbstractTimeGridProperties
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
TimeGridDayProperties
,TimeGridWeekProperties
- 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 String
protected String
protected boolean
protected Integer
protected Integer
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
boolean
boolean
void
setAllDaySlotVisible
(boolean allDaySlotVisible) Determines if the all-day slots are displayed at the top of the calendar.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
setEventMinHeight
(Integer eventMinHeight) Sets the minimum height that an event can have.void
setEventShortHeight
(Integer eventShortHeight) Sets the height threshold for when an event has a "short" style.void
setEventTimeFormat
(String format) Sets the format of the time-text that will be displayed on each event.void
setSlotEventOverlap
(boolean slotEventOverlap) Determines if timed events should visually overlap.void
setSlotLabelFormat
(String format) Sets the format of the text that will be displayed within a time slot.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
-
slotLabelFormat
-
eventMinHeight
-
eventShortHeight
-
slotEventOverlap
protected boolean slotEventOverlap -
allDaySlotVisible
protected boolean allDaySlotVisible -
displayEventEnd
protected boolean displayEventEnd
-
-
Constructor Details
-
AbstractTimeGridProperties
-
-
Method Details
-
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
-
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
-
getSlotLabelFormat
- Returns:
- the slot label format or
null
if not set
-
setSlotLabelFormat
Sets the format of the text that will be displayed within a time slot. 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
"ha"
produces1 am
(1, 2, ... 12 am/pm).- 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
-
getEventMinHeight
- Returns:
- the minimum height or
null
if not set
-
setEventMinHeight
Sets the minimum height that an event can have.The default value is
15
.- Parameters:
eventMinHeight
- minimum height
-
getEventShortHeight
- Returns:
- the event short height or
null
if not set
-
setEventShortHeight
Sets the height threshold for when an event has a "short" style.- Parameters:
eventShortHeight
- the event short height- See Also:
-
isSlotEventOverlap
public boolean isSlotEventOverlap()- Returns:
true
if events overlap each other
-
setSlotEventOverlap
public void setSlotEventOverlap(boolean slotEventOverlap) Determines if timed events should visually overlap.The default value is
true
.- Parameters:
slotEventOverlap
- whether events should overlap each other- See Also:
-
isAllDaySlotVisible
public boolean isAllDaySlotVisible()- Returns:
true
if all-day slots are displayed
-
setAllDaySlotVisible
public void setAllDaySlotVisible(boolean allDaySlotVisible) Determines if the all-day slots are displayed at the top of the calendar.The default value is
true
.- Parameters:
allDaySlotVisible
- whether to display all-day slots
-
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.The default value is
true
.- Parameters:
displayEventEnd
- whether to display end time
-