Class SimpleCalendarEvent
- All Implemented Interfaces:
CalendarEvent
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Booleanprotected Stringprotected Stringprotected Stringprotected Objectprotected Stringprotected Displayprotected Booleanprotected LocalDateTimeprotected Objectprotected final Objectprotected Booleanprotected Booleanprotected DaysOfWeekprotected LocalDateprotected LocalTimeprotected LocalDateprotected LocalTimeprotected LocalDateTimeprotected Booleanprotected Stringprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleCalendarEvent.Buildercreate()Creates a builder for convenient event creation.static SimpleCalendarEvent.BuilderCreates a builder for convenient event creation.booleanDefines additional properties and their values that will be available in various JavaScript functions that takes an event as parameter.Determines if the event is shown in the “all-day” section of relevantCalendarDisplayModes.Specifies the background color for event.Specifies the border color for event.A group ID of other events.Defines the type of event rendering.Determines whether an event can be resized in the calendar component.Returns the end date time object that corresponds to system default time zone:TimeZone.getDefault().Returns a group object that is shared between other evens.getId()Returns a unique ID of calendar event, that will be used for identification on client-side.Defines whether events can be navigated by TAB key.Defines whether the event can be dragged/resized over other events and prevents other events from being dragged/resized over this event.Specifies the days of the week on which this event repeats.Returns the date when the recurrences of this event end.Returns the end time of a recurring event.Returns the date when the recurrences of this event start.Returns the start time of a recurring event.Returns the start date time object that corresponds to system default time zone:TimeZone.getDefault().Determines whether an event can be dragged in the calendar component.Specifies the text color for event.getTitle()inthashCode()voidsetAdditionalProperties(Map<String, Object> additionalProperties) Sets additional properties and their values.voidSets whether the event should be shown in the "all-day" section of relevantCalendarDisplayModes.voidsetBackgroundColor(String backgroundColor) Sets the background color for event.voidsetBorderColor(String borderColor) Sets an event border color.voidsetClassNames(String classNames) Sets event class names.voidsetConstraint(Object constraint) Sets an event constraint.voidsetDescription(String description) Sets event description.voidsetDisplay(Display display) Sets the type of event rendering.voidsetDurationEditable(Boolean durationEditable) Sets whether an event can be resized in the calendar component.voidSets end date time value that corresponds to system default time zone:TimeZone.getDefault().voidsetGroupId(Object groupId) Sets group ID.voidsetInteractive(Boolean interactive) Sets event interactivity.voidsetOverlap(Boolean overlap) Sets whether the event can be dragged/ resized over other events and prevents other events from being dragged/ resized over this eventvoidsetRecurringDaysOfWeek(DaysOfWeek recurringDaysOfWeek) Sets recurring days of week.voidsetRecurringEndDate(LocalDate recurringEndDate) Sets recurring end date.voidsetRecurringEndTime(LocalTime recurringEndTime) Sets recurring end time.voidsetRecurringStartDate(LocalDate recurringStartDate) Sets recurring start date.voidsetRecurringStartTime(LocalTime recurringStartTime) Sets recurring start time.voidsetStartDateTime(LocalDateTime start) Sets start date time value that corresponds to system default time zone:TimeZone.getDefault().voidsetStartEditable(Boolean startEditable) Sets whether an event can be dragged in the calendar component.voidsetTextColor(String textColor) Sets an event text color.voidSets event title.
-
Field Details
-
id
-
groupId
-
constraint
-
allDay
-
startDateTime
-
endDateTime
-
title
-
description
-
interactive
-
classNames
-
startEditable
-
durationEditable
-
display
-
overlap
-
backgroundColor
-
borderColor
-
textColor
-
additionalProperties
-
recurringDaysOfWeek
-
recurringStartDate
-
recurringEndDate
-
recurringStartTime
-
recurringEndTime
-
-
Constructor Details
-
SimpleCalendarEvent
public SimpleCalendarEvent() -
SimpleCalendarEvent
-
-
Method Details
-
getId
Description copied from interface:CalendarEventReturns a unique ID of calendar event, that will be used for identification on client-side.- Specified by:
getIdin interfaceCalendarEvent- Returns:
- ID of calendar event
-
getGroupId
Description copied from interface:CalendarEventReturns a group object that is shared between other evens. Events with the same group ID will be dragged and resized together automatically.- Specified by:
getGroupIdin interfaceCalendarEvent- Returns:
- group ID object or
nullif not set
-
setGroupId
Sets group ID.See full description here:
CalendarEvent.getGroupId().- Parameters:
groupId- group ID to set.
-
getAllDay
Description copied from interface:CalendarEventDetermines if the event is shown in the “all-day” section of relevantCalendarDisplayModes. The default value isfalse.Note, the
nullvalue means not all day event.- Specified by:
getAllDayin interfaceCalendarEvent- Returns:
- {true} if the event is shown in the “all-day” section or
nullif not set
-
setAllDay
Description copied from interface:CalendarEventSets whether the event should be shown in the "all-day" section of relevantCalendarDisplayModes. In addition, iftruethe time text is not displayed with the event. The default value isfalse.Note, the
nullvalue means not all-day event.- Specified by:
setAllDayin interfaceCalendarEvent- Parameters:
allDay- allDay option
-
getStartDateTime
Description copied from interface:CalendarEventReturns the start date time object that corresponds to system default time zone:TimeZone.getDefault().For
EntityCalendarEventvalue automatically transformed from supported by entity date-time object toLocalDateTime.- Specified by:
getStartDateTimein interfaceCalendarEvent- Returns:
- start date time object that corresponds to system default time zone or
nullif not set
-
setStartDateTime
Description copied from interface:CalendarEventSets start date time value that corresponds to system default time zone:TimeZone.getDefault().For
EntityCalendarEventvalue automatically transformed fromLocalDateTimeto supported by entity date-time object to.- Specified by:
setStartDateTimein interfaceCalendarEvent- Parameters:
start- start date-time
-
getEndDateTime
Description copied from interface:CalendarEventReturns the end date time object that corresponds to system default time zone:TimeZone.getDefault().For
EntityCalendarEventvalue automatically transformed from supported by entity date-time object toLocalDateTime.- Specified by:
getEndDateTimein interfaceCalendarEvent- Returns:
- end date time value that corresponds to system default time zone or
nullif not set
-
setEndDateTime
Description copied from interface:CalendarEventSets end date time value that corresponds to system default time zone:TimeZone.getDefault().Note that this value is exclusive. For instance, an event with end property -
2024-09-03will appear to span through {code 2024-09-02} but before the start of2024-09-03.For
EntityCalendarEventvalue automatically transformed fromLocalDateTimeto supported by entity date-time object to.- Specified by:
setEndDateTimein interfaceCalendarEvent- Parameters:
end- end date-time
-
getTitle
- Specified by:
getTitlein interfaceCalendarEvent- Returns:
- a text that will appear on an event
-
setTitle
Sets event title.See full description here:
CalendarEvent.getTitle().- Parameters:
title- title to set
-
getDescription
- Specified by:
getDescriptionin interfaceCalendarEvent- Returns:
- an event description
-
setDescription
Sets event description.See full description here:
CalendarEvent.getDescription().- Parameters:
description- description to set
-
getInteractive
Description copied from interface:CalendarEventDefines whether events can be navigated by TAB key.If value is
null, the event interactivity will be managed byJmixFullCalendar.isEventInteractive().- Specified by:
getInteractivein interfaceCalendarEvent- Returns:
trueif the event should be navigable by TAB key ornullif not set
-
setInteractive
Sets event interactivity.See full description here:
CalendarEvent.getInteractive().- Parameters:
interactive- whether events can be navigated by TAB key
-
getClassNames
- Specified by:
getClassNamesin interfaceCalendarEvent- Returns:
- a class name or class names separated by space that should be attached to the rendered event
-
setClassNames
Sets event class names.See full description here:
CalendarEvent.getClassNames().- Parameters:
classNames- class names to set
-
getStartEditable
Description copied from interface:CalendarEventDetermines whether an event can be dragged in the calendar component. This value override theJmixFullCalendar.setEventStartEditable(boolean)property.Note,
nullvalue means that the ability of editing start position will be managed by component's property.For instance, for calendar
eventStartEditable=true:- and event's
startEditable=true- event start is editable - and event's
startEditable=false- event start is not editable - and event's
startEditable=null- event start is editable
eventStartEditable=false:- and event's
startEditable=true- event start is editable - and event's
startEditable=false- event start is not editable - and event's
startEditable=null- event start is not editable
- Specified by:
getStartEditablein interfaceCalendarEvent- Returns:
falseif an event should not provide the ability to edit event start position
- and event's
-
setStartEditable
Sets whether an event can be dragged in the calendar component.See full description here:
CalendarEvent.getStartEditable().- Parameters:
startEditable- startEditable option
-
getDurationEditable
Description copied from interface:CalendarEventDetermines whether an event can be resized in the calendar component. This value override theJmixFullCalendar.setEventDurationEditable(boolean)property.Note,
nullvalue means that the ability of event resizing will be managed by component's property.For instance, for calendar
eventDurationEditable=true:- and event's
durationEditable=true- event duration is editable - and event's
durationEditable=false- event duration is not editable - and event's
durationEditable=null- event duration is editable
eventStartEditable=false:- and event's
durationEditable=true- event duration is editable - and event's
durationEditable=false- event duration is not editable - and event's
durationEditable=null- event duration is not editable
- Specified by:
getDurationEditablein interfaceCalendarEvent- Returns:
falseif an event should not be resized
- and event's
-
setDurationEditable
Sets whether an event can be resized in the calendar component.See full description here:
CalendarEvent.getDurationEditable().- Parameters:
durationEditable- durationEditable option
-
getDisplay
Description copied from interface:CalendarEventDefines the type of event rendering. If not specified, theDisplay.AUTOwill be used by default.- Specified by:
getDisplayin interfaceCalendarEvent- Returns:
- the type of event rendering or
nullif not set
-
setDisplay
Sets the type of event rendering.See full description here:
CalendarEvent.getDisplay().- Parameters:
display- the type of event rendering
-
getOverlap
Description copied from interface:CalendarEventDefines whether the event can be dragged/resized over other events and prevents other events from being dragged/resized over this event.Note if value is
null, the ability of overlapping will be managed byJmixFullCalendar.isEventOverlap()orJmixFullCalendar.getEventOverlapJsFunction().For instance, for calendar's
eventOverlap=true:- and event's
overlap=true- event can be overlapped - and event's
overlap=false- event cannot be overlapped - and event's
overlap=null- event can be overlapped
eventOverlap=false:- and event's
overlap=true- event can be overlapped - and event's
overlap=false- event cannot be overlapped - and event's
overlap=null- event cannot be overlapped
- Specified by:
getOverlapin interfaceCalendarEvent- Returns:
trueif event should be overlapped
- and event's
-
setOverlap
Sets whether the event can be dragged/ resized over other events and prevents other events from being dragged/ resized over this eventSee full description here:
CalendarEvent.getOverlap().- Parameters:
overlap- overlap option
-
getConstraint
Description copied from interface:CalendarEventA group ID of other events. This property limits dragging and resizing to a certain cells in component.If value is
null, the event constraints will be managed by component'sFullCalendar.getEventConstraintGroupId()andFullCalendar.getEventConstraintBusinessHours()- Specified by:
getConstraintin interfaceCalendarEvent- Returns:
- a constraint object or
nullif not set
-
setConstraint
Sets an event constraint.See full description here:
CalendarEvent.getConstraint().- Parameters:
constraint- constraint to set
-
getBackgroundColor
Description copied from interface:CalendarEventSpecifies the background color for event. Supported values are:-
#f00 -
#ff0000 -
rgb(255,0,0) -
Color name -
red
null, color will be managed by component'sJmixFullCalendar.getEventBackgroundColor().- Specified by:
getBackgroundColorin interfaceCalendarEvent- Returns:
- background color or
nullif not set
-
-
setBackgroundColor
Sets the background color for event.See full description here:
CalendarEvent.getBackgroundColor().- Parameters:
backgroundColor- background color
-
getBorderColor
Description copied from interface:CalendarEventSpecifies the border color for event. Supported values are:-
#f00 -
#ff0000 -
rgb(255,0,0) -
Color name -
red
null, color will be managed by component'sJmixFullCalendar.getEventBorderColor().- Specified by:
getBorderColorin interfaceCalendarEvent- Returns:
- border color or
nullif not set
-
-
setBorderColor
Sets an event border color.See full description here:
CalendarEvent.getBorderColor().- Parameters:
borderColor- border color
-
getTextColor
Description copied from interface:CalendarEventSpecifies the text color for event. Supported values are:-
#f00 -
#ff0000 -
rgb(255,0,0) -
Color name -
red
null, color will be managed by component'sJmixFullCalendar.getEventTextColor(). The color applies in time-grid display modes and for all-day events in day-grid display modes.- Specified by:
getTextColorin interfaceCalendarEvent- Returns:
- text color or
nullif not set
-
-
setTextColor
Sets an event text color.See full description here:
CalendarEvent.getTextColor().- Parameters:
textColor- text color
-
getAdditionalProperties
Description copied from interface:CalendarEventDefines additional properties and their values that will be available in various JavaScript functions that takes an event as parameter. For instance, seeJmixFullCalendar.setEventOrderJsFunction(JsFunction).- Specified by:
getAdditionalPropertiesin interfaceCalendarEvent- Returns:
- map of additional properties and their values
-
setAdditionalProperties
Sets additional properties and their values.See full description here:
CalendarEvent.getAdditionalProperties().- Parameters:
additionalProperties- additional properties
-
getRecurringDaysOfWeek
Description copied from interface:CalendarEventSpecifies the days of the week on which this event repeats. If omitted, the event is assumed to repeat every day.- Specified by:
getRecurringDaysOfWeekin interfaceCalendarEvent- Returns:
- the days of the week this event repeats or
nullif not set
-
setRecurringDaysOfWeek
Sets recurring days of week.See full description here:
CalendarEvent.getRecurringDaysOfWeek().- Parameters:
recurringDaysOfWeek- recurring days of week
-
getRecurringStartDate
Description copied from interface:CalendarEventReturns the date when the recurrences of this event start. If not specified, the recurrences will extend infinitely into the past.- Specified by:
getRecurringStartDatein interfaceCalendarEvent- Returns:
- the start date of recurring event or
nullif not set
-
setRecurringStartDate
Sets recurring start date.See full description here:
CalendarEvent.getRecurringStartDate().- Parameters:
recurringStartDate- recurring start date
-
getRecurringEndDate
Description copied from interface:CalendarEventReturns the date when the recurrences of this event end. If not specified, the recurrences will extend infinitely into the future.Note that this value is exclusive. For all-day recurring events, set the end date to the day after your desired last recurrence.
- Specified by:
getRecurringEndDatein interfaceCalendarEvent- Returns:
- the end date of recurring event or
nullif not set
-
setRecurringEndDate
Sets recurring end date.See full description here:
CalendarEvent.getRecurringEndDate().- Parameters:
recurringEndDate- recurring end date
-
getRecurringStartTime
Description copied from interface:CalendarEventReturns the start time of a recurring event. If this is not defined, the event is considered an all-day event.Note that the calendar does not apply time zone conversion for this property. If the
OffsetTimedatatype is used in the entity, it will be transformed to the system's default time zone.- Specified by:
getRecurringStartTimein interfaceCalendarEvent- Returns:
- the start time of recurring event or
nullif not set
-
setRecurringStartTime
Sets recurring start time.See full description here:
CalendarEvent.getRecurringStartDate().- Parameters:
recurringStartTime- recurring start time
-
getRecurringEndTime
Description copied from interface:CalendarEventReturns the end time of a recurring event. If this is not defined, the event will appear to have the default duration as configured inJmixFullCalendar.getDefaultTimedEventDuration()property.Note that the calendar does not apply time zone conversion for this property. If the
OffsetTimedatatype is used in the entity, it will be transformed to the system's default time zone.- Specified by:
getRecurringEndTimein interfaceCalendarEvent- Returns:
- the end time of recurring event or
nullif not set
-
setRecurringEndTime
Sets recurring end time.See full description here:
CalendarEvent.getRecurringEndTime().- Parameters:
recurringEndTime- recurring end time
-
create
Creates a builder for convenient event creation. GeneratesUUIDas an event ID.- Returns:
- a builder
-
create
Creates a builder for convenient event creation.- Parameters:
id- event ID- Returns:
- a builder
-
equals
-
hashCode
public int hashCode()
-