Class SimpleCalendarEvent.Builder
- Enclosing class:
- SimpleCalendarEvent
SimpleCalendarEvent
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds an event.See full description here:CalendarEvent.getAdditionalProperties()
.See full description here:CalendarEvent.getAllDay()
.See full description here:CalendarEvent.getBackgroundColor()
.See full description here:CalendarEvent.getBorderColor()
.See full description here:CalendarEvent.getClassNames()
.See full description here:CalendarEvent.getConstraint()
.See full description here:CalendarEvent.getDescription()
.See full description here:CalendarEvent.getDisplay()
.See full description here:CalendarEvent.getDurationEditable()
.See full description here:CalendarEvent.getEndDateTime()
.See full description here:CalendarEvent.getGroupId()
.See full description here:CalendarEvent.getInteractive()
.See full description here:CalendarEvent.getOverlap()
.See full description here:CalendarEvent.getRecurringDaysOfWeek()
.See full description here:CalendarEvent.getRecurringEndDate()
.See full description here:CalendarEvent.getRecurringEndTime()
.See full description here:CalendarEvent.getRecurringStartDate()
.See full description here:CalendarEvent.getRecurringStartDate()
.See full description here:CalendarEvent.getStartDateTime()
.See full description here:CalendarEvent.getStartEditable()
.See full description here:CalendarEvent.getTextColor()
.getTitle()
See full description here:CalendarEvent.getTitle()
.withAdditionalProperties
(Map<String, Object> additionalProperties) Sets additional properties and their values.withAllDay
(Boolean allDay) Sets all-day option.withBackgroundColor
(String backgroundColor) Sets an event background color.withBorderColor
(String borderColor) Sets an event border color.withClassNames
(String classNames) Sets event class names.withConstraint
(Object constraint) Sets an event constraint.withDescription
(String description) Sets event description.withDisplay
(Display display) Sets the type of event rendering.withDurationEditable
(Boolean durationEditable) Sets whether an event can be resized in the calendar componentSets end date-time.withGroupId
(Object groupId) Sets group ID.withInteractive
(Boolean interactive) Sets event interactivity.withOverlap
(Boolean overlap) Sets whether the event can be dragged/resized over other events and prevents other events from being dragged/resized over this event.withRecurringDaysOfWeek
(DaysOfWeek daysOfWeek) Sets recurring days of week.withRecurringEndDate
(LocalDate recurringEndDate) Sets recurring end date.withRecurringEndTime
(LocalTime recurringEndTime) Sets recurring end time.withRecurringStartDate
(LocalDate recurringStartDate) Sets recurring start date.withRecurringStartTime
(LocalTime recurringStartTime) Sets recurring start time.withStartDateTime
(LocalDateTime start) Sets start date-time.withStartEditable
(Boolean startEditable) Sets whether an event can be dragged in the calendar component.withTextColor
(String textColor) Sets an event text color.Sets event title.
-
Field Details
-
event
-
-
Constructor Details
-
Builder
public Builder()Creates builder withUUID
as an event ID. -
Builder
Creates builder.- Parameters:
id
- event ID
-
-
Method Details
-
getGroupId
See full description here:CalendarEvent.getGroupId()
.- Returns:
- group ID or
null
if not set
-
withGroupId
Sets group ID.See full description here:
CalendarEvent.getGroupId()
.- Parameters:
groupId
- group ID- Returns:
- current instance of builder
-
getAllDay
See full description here:CalendarEvent.getAllDay()
.- Returns:
- all-day option or
null
if not set
-
withAllDay
Sets all-day option.See full description here:
CalendarEvent.setAllDay(Boolean)
.- Parameters:
allDay
- all-day option- Returns:
- current instance of builder
-
getStartDateTime
See full description here:CalendarEvent.getStartDateTime()
.- Returns:
- start date-time or
null
if not set
-
withStartDateTime
Sets start date-time.See full description here:
CalendarEvent.setStartDateTime(java.time.LocalDateTime)
.- Parameters:
start
- start date-time- Returns:
- current instance of builder
-
getEndDateTime
See full description here:CalendarEvent.getEndDateTime()
.- Returns:
- end date-time or
null
if not set
-
withEndDateTime
Sets end date-time.See full description here:
CalendarEvent.setEndDateTime(LocalDateTime)
.- Parameters:
end
- end date-time- Returns:
- current instance of builder
-
getTitle
See full description here:CalendarEvent.getTitle()
.- Returns:
- event title or
null
if not set
-
withTitle
Sets event title.See full description here:
CalendarEvent.getTitle()
.- Parameters:
title
- event title- Returns:
- current instance of builder
-
getDescription
See full description here:CalendarEvent.getDescription()
.- Returns:
- description or
null
if not set
-
withDescription
Sets event description.See full description here:
CalendarEvent.getDescription()
.- Parameters:
description
- event description- Returns:
- current instance of builder
-
getInteractive
See full description here:CalendarEvent.getInteractive()
.- Returns:
- whether events can be navigated by TAB key or
null
if not set
-
withInteractive
Sets event interactivity.See full description here:
CalendarEvent.getInteractive()
.- Parameters:
interactive
- interactive option- Returns:
- current instance of builder
-
getClassNames
See full description here:CalendarEvent.getClassNames()
.- Returns:
- event class names or
null
if not set
-
withClassNames
Sets event class names.See full description here:
CalendarEvent.getClassNames()
.- Parameters:
classNames
- event class names- Returns:
- current instance of builder
-
getStartEditable
See full description here:CalendarEvent.getStartEditable()
.- Returns:
- whether an event can be dragged in the calendar component or
null
if not set
-
withStartEditable
Sets whether an event can be dragged in the calendar component.See full description here:
CalendarEvent.getStartEditable()
.- Parameters:
startEditable
- startEditable option- Returns:
- current instance of builder
-
getDurationEditable
See full description here:CalendarEvent.getDurationEditable()
.- Returns:
- whether an event can be resized in the calendar component or
null
if not set
-
withDurationEditable
Sets whether an event can be resized in the calendar componentSee full description here:
CalendarEvent.getDurationEditable()
.- Parameters:
durationEditable
- durationEditable option- Returns:
- current instance of builder
-
getDisplay
See full description here:CalendarEvent.getDisplay()
.- Returns:
- the type of event rendering or
null
if not set
-
withDisplay
Sets the type of event rendering.See full description here:
CalendarEvent.getDisplay()
.- Parameters:
display
- the type of rendering- Returns:
- current instance of builder
-
getOverlap
See full description here:CalendarEvent.getOverlap()
.- Returns:
- whether the event can be dragged/ resized over other events or
null
if not set
-
withOverlap
Sets whether the event can be dragged/resized over other events and prevents other events from being dragged/resized over this event.See full description here:
CalendarEvent.getOverlap()
.- Parameters:
overlap
- overlap option- Returns:
- current instance of builder
-
getConstraint
See full description here:CalendarEvent.getConstraint()
.- Returns:
- event constraint or
null
if not set
-
withConstraint
Sets an event constraint.See full description here:
CalendarEvent.getConstraint()
.- Parameters:
constraint
- event constraint- Returns:
- current instance of builder
-
getBackgroundColor
See full description here:CalendarEvent.getBackgroundColor()
.- Returns:
- event background color or
null
if not set
-
withBackgroundColor
Sets an event background color.See full description here:
CalendarEvent.getBackgroundColor()
.- Parameters:
backgroundColor
- event background color- Returns:
- current instance of builder
-
getBorderColor
See full description here:CalendarEvent.getBorderColor()
.- Returns:
- event border color or
null
if not set
-
withBorderColor
Sets an event border color.See full description here:
CalendarEvent.getBorderColor()
.- Parameters:
borderColor
- event border color- Returns:
- current instance of builder
-
getTextColor
See full description here:CalendarEvent.getTextColor()
.- Returns:
- event text color or
null
if not set
-
withTextColor
Sets an event text color.See full description here:
CalendarEvent.getTextColor()
.- Parameters:
textColor
- event text color- Returns:
- current instance of builder
-
getAdditionalProperties
See full description here:CalendarEvent.getAdditionalProperties()
.- Returns:
- additional properties or
null
if not set
-
withAdditionalProperties
public SimpleCalendarEvent.Builder withAdditionalProperties(@Nullable Map<String, Object> additionalProperties) Sets additional properties and their values.See full description here:
CalendarEvent.getAdditionalProperties()
.- Parameters:
additionalProperties
- additional properties- Returns:
- current instance of builder
-
getRecurringDaysOfWeek
See full description here:CalendarEvent.getRecurringDaysOfWeek()
.- Returns:
- recurring days of week or
null
if not set
-
withRecurringDaysOfWeek
Sets recurring days of week.See full description here:
CalendarEvent.getRecurringDaysOfWeek()
.- Parameters:
daysOfWeek
- fays of week- Returns:
- current instance of builder
-
getRecurringStartDate
See full description here:CalendarEvent.getRecurringStartDate()
.- Returns:
- recurring start date or
null
if not set
-
withRecurringStartDate
Sets recurring start date.See full description here:
CalendarEvent.getRecurringStartDate()
.- Parameters:
recurringStartDate
- recurring start date- Returns:
- current instance of builder
-
getRecurringEndDate
See full description here:CalendarEvent.getRecurringEndDate()
.- Returns:
- recurring end date or
null
if not set
-
withRecurringEndDate
Sets recurring end date.See full description here:
CalendarEvent.getRecurringEndDate()
.- Parameters:
recurringEndDate
- recurring end date- Returns:
- current instance of builder
-
getRecurringStartTime
See full description here:CalendarEvent.getRecurringStartDate()
.- Returns:
- recurring start time or
null
if not set
-
withRecurringStartTime
Sets recurring start time.See full description here:
CalendarEvent.getRecurringStartTime()
.- Parameters:
recurringStartTime
- recurring start time- Returns:
- current instance of builder
-
getRecurringEndTime
See full description here:CalendarEvent.getRecurringEndTime()
.- Returns:
- recurring end time or
null
if not set
-
withRecurringEndTime
Sets recurring end time.See full description here:
CalendarEvent.getRecurringEndTime()
.- Parameters:
recurringEndTime
- recurring end time- Returns:
- current instance of builder
-
build
Builds an event.- Returns:
- instance of event
-