java.lang.Object
org.vaadin.addons.componentfactory.schedulexcalendar.model.Event
All Implemented Interfaces:
Serializable

public class Event extends Object implements Serializable
Calendar event definition.
See Also:
  • Constructor Details

    • Event

      public Event(String id, LocalDateTime start, LocalDateTime end)
      Constructs an Event with the specified ID, start, and end date-times.
      Parameters:
      id - the unique identifier of the event
      start - the start date and time of the event
      end - the end date and time of the event
    • Event

      public Event(String id, String start, String end)
      Constructs an Event from an ID and string representations of the start and end date-times.

      Supported formats for start and end:

      • YYYY-MM-DD — treated as midnight (start of day)
      • YYYY-MM-DD HH:mm — treated as the specified date and time
      If the end value is given in the YYYY-MM-DD format, it is internally adjusted to represent the end of that day (23:59:59).
      Parameters:
      id - the unique identifier of the event
      start - the start date-time string in one of the supported formats
      end - the end date-time string in one of the supported formats
    • Event

      public Event(elemental.json.JsonValue json)
      Constructs an Event from a JSON representation.

      Required fields in the JSON object:

      • id – unique event ID
      • start – start date-time string (format: YYYY-MM-DD or YYYY-MM-DD HH:mm)
      • end – end date-time string (same formats as start)
      Parameters:
      json - the JsonValue representing the event data
  • Method Details