Class SimpleCalendarEvent.Builder
- Enclosing class:
SimpleCalendarEvent
SimpleCalendarEvent.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an event.See full description here:CalendarEvent.getAdditionalProperties().@Nullable BooleanSee full description here:CalendarEvent.getAllDay().@Nullable StringSee full description here:CalendarEvent.getBackgroundColor().@Nullable StringSee full description here:CalendarEvent.getBorderColor().@Nullable StringSee full description here:CalendarEvent.getClassNames().@Nullable ObjectSee full description here:CalendarEvent.getConstraint().@Nullable StringSee full description here:CalendarEvent.getDescription().@Nullable DisplaySee full description here:CalendarEvent.getDisplay().@Nullable BooleanSee full description here:CalendarEvent.getDurationEditable().@Nullable LocalDateTimeSee full description here:CalendarEvent.getEndDateTime().@Nullable ObjectSee full description here:CalendarEvent.getGroupId().@Nullable BooleanSee full description here:CalendarEvent.getInteractive().@Nullable BooleanSee full description here:CalendarEvent.getOverlap().@Nullable DaysOfWeekSee full description here:CalendarEvent.getRecurringDaysOfWeek().@Nullable LocalDateSee full description here:CalendarEvent.getRecurringEndDate().@Nullable LocalTimeSee full description here:CalendarEvent.getRecurringEndTime().@Nullable LocalDateSee full description here:CalendarEvent.getRecurringStartDate().@Nullable LocalTimeSee full description here:CalendarEvent.getRecurringStartDate().@Nullable LocalDateTimeSee full description here:CalendarEvent.getStartDateTime().@Nullable BooleanSee full description here:CalendarEvent.getStartEditable().@Nullable StringSee full description here:CalendarEvent.getTextColor().@Nullable StringgetTitle()See full description here:CalendarEvent.getTitle().withAdditionalProperties(@Nullable Map<String, Object> additionalProperties) Sets additional properties and their values.withAllDay(@Nullable Boolean allDay) Sets all-day option.withBackgroundColor(@Nullable String backgroundColor) Sets an event background color.withBorderColor(@Nullable String borderColor) Sets an event border color.withClassNames(@Nullable String classNames) Sets event class names.withConstraint(@Nullable Object constraint) Sets an event constraint.withDescription(@Nullable String description) Sets event description.withDisplay(@Nullable Display display) Sets the type of event rendering.withDurationEditable(@Nullable Boolean durationEditable) Sets whether an event can be resized in the calendar componentwithEndDateTime(@Nullable LocalDateTime end) Sets end date-time.withEndDateTime(LocalDate date, LocalTime time) Sets end date-time.withGroupId(Object groupId) Sets group ID.withInteractive(@Nullable Boolean interactive) Sets event interactivity.withOverlap(@Nullable 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(@Nullable DaysOfWeek daysOfWeek) Sets recurring days of week.withRecurringEndDate(@Nullable LocalDate recurringEndDate) Sets recurring end date.withRecurringEndTime(@Nullable LocalTime recurringEndTime) Sets recurring end time.withRecurringStartDate(@Nullable LocalDate recurringStartDate) Sets recurring start date.withRecurringStartTime(@Nullable LocalTime recurringStartTime) Sets recurring start time.withStartDateTime(@Nullable LocalDateTime start) Sets start date-time.withStartDateTime(LocalDate date, LocalTime time) Sets start date-time.withStartEditable(@Nullable Boolean startEditable) Sets whether an event can be dragged in the calendar component.withTextColor(@Nullable String textColor) Sets an event text color.Sets event title.
-
Field Details
-
event
-
-
Constructor Details
-
Builder
public Builder()Creates builder withUUIDas an event ID. -
Builder
Creates builder.- Parameters:
id- event ID
-
-
Method Details
-
getGroupId
See full description here:CalendarEvent.getGroupId().- Returns:
- group ID or
nullif 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
nullif 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
nullif 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
-
withStartDateTime
Sets start date-time.See full description here:
CalendarEvent.setStartDateTime(java.time.LocalDateTime).- Parameters:
date- start datetime- start time- Returns:
- current instance of builder
-
getEndDateTime
See full description here:CalendarEvent.getEndDateTime().- Returns:
- end date-time or
nullif not set
-
withEndDateTime
Sets end date-time.See full description here:
CalendarEvent.setEndDateTime(LocalDateTime).- Parameters:
end- end date-time- Returns:
- current instance of builder
-
withEndDateTime
Sets end date-time.See full description here:
CalendarEvent.setEndDateTime(LocalDateTime).- Parameters:
date- start datetime- start time- Returns:
- current instance of builder
-
getTitle
See full description here:CalendarEvent.getTitle().- Returns:
- event title or
nullif 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
nullif 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
nullif 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
nullif 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
nullif 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
nullif 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
nullif 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
nullif 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
nullif 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
nullif 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
nullif 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
nullif 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
nullif 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
nullif 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
nullif 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
nullif 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
nullif 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
nullif 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
-