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
FieldsModifier and TypeFieldDescriptionprotected booleanprotected Stringprotected Stringprotected booleanprotected Integerprotected Integerprotected 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 TypeMethodDescriptionbooleanbooleanbooleanvoidsetAllDaySlotVisible(boolean allDaySlotVisible) Determines if the all-day slots are displayed at the top of the calendar.voidsetDayHeaderFormat(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.voidsetEventMinHeight(Integer eventMinHeight) Sets the minimum height that an event can have.voidsetEventShortHeight(Integer eventShortHeight) Sets the height threshold for when an event has a "short" style.voidsetEventTimeFormat(String format) Sets the format of the time-text that will be displayed on each event.voidsetSlotEventOverlap(boolean slotEventOverlap) Determines if timed events should visually overlap.voidsetSlotLabelFormat(String format) Sets the format of the text that will be displayed within a time slot.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
-
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
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
-
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
-
getSlotLabelFormat
- Returns:
- the slot label format or
nullif 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
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
"ha"produces1 am(1, 2, ... 12 am/pm).- 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
-
getEventMinHeight
- Returns:
- the minimum height or
nullif 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
nullif 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:
trueif 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:
trueif 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:
trueif 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
-