Interface CalendarEvent

  • All Superinterfaces:
    Serializable
    All Known Subinterfaces:
    EditableCalendarEvent
    All Known Implementing Classes:
    BasicEvent

    @Deprecated
    public interface CalendarEvent
    extends Serializable
    Deprecated.

    Event in the calendar. Customize your own event by implementing this interface.

    • Start and end fields are mandatory.
    • In "allDay" events longer than one day, starting and ending clock times are omitted in UI and only dates are shown.
    Since:
    7.1.0
    Author:
    Vaadin Ltd.
    • Method Detail

      • getStart

        Date getStart()
        Deprecated.
        Gets start date of event.
        Returns:
        Start date.
      • getEnd

        Date getEnd()
        Deprecated.
        Get end date of event.
        Returns:
        End date;
      • getCaption

        String getCaption()
        Deprecated.
        Gets caption of event.
        Returns:
        Caption text
      • getDescription

        String getDescription()
        Deprecated.
        Gets description of event. Shown as a tooltip over the event.
        Returns:
        Description text.
      • getStyleName

        String getStyleName()
        Deprecated.

        Gets style name of event. In the client, style name will be set to the event's element class name and can be styled by CSS

        Styling example:
        Java code:
        event.setStyleName("color1");

        CSS:
        .v-calendar-event-color1 {
           background-color: #9effae;
        }
        Returns:
        Style name.
      • isAllDay

        boolean isAllDay()
        Deprecated.
        An all-day event typically does not occur at a specific time but targets a whole day or days. The rendering of all-day events differs from normal events.
        Returns:
        true if this event is an all-day event, false otherwise