Class BasicEvent

    • Constructor Detail

      • BasicEvent

        public BasicEvent()
        Deprecated.
        Default constructor.
      • BasicEvent

        public BasicEvent​(String caption,
                          String description,
                          Date date)
        Deprecated.
        Constructor for creating an event with the same start and end date.
        Parameters:
        caption - The caption for the event
        description - The description for the event
        date - The date the event occurred
      • BasicEvent

        public BasicEvent​(String caption,
                          String description,
                          Date startDate,
                          Date endDate)
        Deprecated.
        Constructor for creating an event with a start date and an end date. Start date should be before the end date
        Parameters:
        caption - The caption for the event
        description - The description for the event
        startDate - The start date of the event
        endDate - The end date of the event
    • Method Detail

      • getDescription

        public String getDescription()
        Deprecated.
        Description copied from interface: CalendarEvent
        Gets description of event. Shown as a tooltip over the event.
        Specified by:
        getDescription in interface CalendarEvent
        Returns:
        Description text.
      • getEnd

        public Date getEnd()
        Deprecated.
        Description copied from interface: CalendarEvent
        Get end date of event.
        Specified by:
        getEnd in interface CalendarEvent
        Returns:
        End date;
      • getStart

        public Date getStart()
        Deprecated.
        Description copied from interface: CalendarEvent
        Gets start date of event.
        Specified by:
        getStart in interface CalendarEvent
        Returns:
        Start date.
      • getStyleName

        public String getStyleName()
        Deprecated.
        Description copied from interface: CalendarEvent

        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;
        }
        Specified by:
        getStyleName in interface CalendarEvent
        Returns:
        Style name.
      • isAllDay

        public boolean isAllDay()
        Deprecated.
        Description copied from interface: CalendarEvent
        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.
        Specified by:
        isAllDay in interface CalendarEvent
        Returns:
        true if this event is an all-day event, false otherwise
      • setCaption

        public void setCaption​(String caption)
        Deprecated.
        Description copied from interface: EditableCalendarEvent
        Set the visible text in the calendar for the event.
        Specified by:
        setCaption in interface EditableCalendarEvent
        Parameters:
        caption - The text to show in the calendar
      • setDescription

        public void setDescription​(String description)
        Deprecated.
        Description copied from interface: EditableCalendarEvent
        Set the description of the event. This is shown in the calendar when hoovering over the event.
        Specified by:
        setDescription in interface EditableCalendarEvent
        Parameters:
        description - The text which describes the event
      • setEnd

        public void setEnd​(Date end)
        Deprecated.
        Description copied from interface: EditableCalendarEvent
        Set the end date of the event. Must be after the start date.
        Specified by:
        setEnd in interface EditableCalendarEvent
        Parameters:
        end - The end date to set
      • setStart

        public void setStart​(Date start)
        Deprecated.
        Description copied from interface: EditableCalendarEvent
        Set the start date for the event. Must be before the end date
        Specified by:
        setStart in interface EditableCalendarEvent
        Parameters:
        start - The start date of the event
      • setStyleName

        public void setStyleName​(String styleName)
        Deprecated.
        Description copied from interface: EditableCalendarEvent
        Set the style name for the event used for styling the event cells.
        Specified by:
        setStyleName in interface EditableCalendarEvent
        Parameters:
        styleName - The stylename to use
      • setAllDay

        public void setAllDay​(boolean isAllDay)
        Deprecated.
        Description copied from interface: EditableCalendarEvent
        Does the event span the whole day. If so then set this to true.
        Specified by:
        setAllDay in interface EditableCalendarEvent
        Parameters:
        isAllDay - True if the event spans the whole day. In this case the start and end times are ignored.
      • fireEventChange

        protected void fireEventChange()
        Deprecated.
        Fires an event change event to the listeners. Should be triggered when some property of the event changes.