Class Event
java.lang.Object
org.vaadin.addons.componentfactory.schedulexcalendar.model.Event
- All Implemented Interfaces:
Serializable
Calendar event definition.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classOptional custom content to render in different views.static classConfigure the behavior of individual events by adding an _options object to the event. -
Constructor Summary
ConstructorsConstructorDescriptionEvent(elemental.json.JsonValue json) Constructs anEventfrom a JSON representation.Constructs anEventfrom an ID and string representations of the start and end date-times.Event(String id, LocalDateTime start, LocalDateTime end) Constructs anEventwith the specified ID, start, and end date-times. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetEnd()getId()getJson()getStart()getTitle()inthashCode()voidsetCalendarId(String calendarId) voidsetCustomContent(Event.EventCustomContent customContent) voidsetDescription(String description) voidsetEnd(LocalDateTime end) voidsetExcludedDates(List<LocalDateTime> excludedDates) voidvoidsetLocation(String location) voidsetOptions(Event.EventOptions options) voidvoidsetRecurrenceRule(RecurrenceRule recurrenceRule) voidsetResourceId(String resourceId) voidsetStart(LocalDateTime start) void
-
Constructor Details
-
Event
Constructs anEventwith the specified ID, start, and end date-times.- Parameters:
id- the unique identifier of the eventstart- the start date and time of the eventend- the end date and time of the event
-
Event
Constructs anEventfrom an ID and string representations of the start and end date-times.Supported formats for
startandend:YYYY-MM-DD— treated as midnight (start of day)YYYY-MM-DD HH:mm— treated as the specified date and time
endvalue is given in theYYYY-MM-DDformat, it is internally adjusted to represent the end of that day (23:59:59).- Parameters:
id- the unique identifier of the eventstart- the start date-time string in one of the supported formatsend- the end date-time string in one of the supported formats
-
Event
public Event(elemental.json.JsonValue json) Constructs anEventfrom a JSON representation.Required fields in the JSON object:
id– unique event IDstart– start date-time string (format:YYYY-MM-DDorYYYY-MM-DD HH:mm)end– end date-time string (same formats asstart)
- Parameters:
json- theJsonValuerepresenting the event data
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
getId
-
setId
-
getStart
-
setStart
-
getEnd
-
setEnd
-
getTitle
-
setTitle
-
getDescription
-
setDescription
-
getLocation
-
setLocation
-
getPeople
-
setPeople
-
getCalendarId
-
setCalendarId
-
getOptions
-
setOptions
-
getCustomContent
-
setCustomContent
-
getResourceId
-
setResourceId
-
getRecurrenceRule
-
setRecurrenceRule
-
getExcludedDates
-
setExcludedDates
-
getJson
-