Class Event


public final class Event extends CalendarNode
Event
Created at 2022/9/20 10:38
Author:
vorbote
  • Constructor Details

    • Event

      public Event()
  • Method Details

    • addCategories

      public Event addCategories(String... categories)
      Add a batch of categories.
      Parameters:
      categories - A batch of categories.
      Returns:
      The Event instance.
    • addCategories

      public Event addCategories(Collection<String> categories)
      Add a batch of categories.
      Parameters:
      categories - A batch of categories.
      Returns:
      The Event instance.
    • addCategory

      public Event addCategory(String category)
      Add a category.
      Parameters:
      category - A category.
      Returns:
      The Event instance.
    • setClassification

      public Event setClassification(Classification classification)
      Set the classification.
      Parameters:
      classification - The specified classification value.
      Returns:
      The Event instance.
    • setComment

      public Event setComment(String comment)
      Set the comment.
      Parameters:
      comment - The comment.
      Returns:
      The Event instance.
    • setDescription

      public Event setDescription(String description)
      Set the description.
      Parameters:
      description - The description.
      Returns:
      The Event instance.
    • setLocation

      public Event setLocation(String location)
      Set the location.
      Parameters:
      location - The location.
      Returns:
      The Event instance.
    • setPercentComplete

      public Event setPercentComplete(Integer percentComplete)
      Set the percent complete value.
      Parameters:
      percentComplete - The percent complete value.
      Returns:
      The Event instance.
    • setPriority

      public Event setPriority(Integer priority)
      Set a priority.
      Parameters:
      priority - The priority to be set.
      Returns:
      The Event instance.
    • setSummary

      public Event setSummary(String summary)
      Set the summary.
      Parameters:
      summary - The summary (you can also call it as a title).
      Returns:
      The Event instance.
    • setEnd

      public Event setEnd(DateTime end)
      Set the end of this node.
      Parameters:
      end - The end time of this event.
      Returns:
      The Event instance.
    • setStart

      public Event setStart(DateTime start)
      Set the start of this event.
      Parameters:
      start - The date time specify the start time of this event.
      Returns:
      The Event instance.
    • setDuration

      public Event setDuration(TimeSpan duration)
      Set the duration of this event.
      Parameters:
      duration - The duration of this event.
      Returns:
      The Event instance.
    • setUrl

      public Event setUrl(String url)
      Set the URL.
      Parameters:
      url - The URL.
      Returns:
      The Event instance.
    • setUid

      public Event setUid(Long uid)
      Set the uid of this event.
      Parameters:
      uid - The uid.
      Returns:
      The Event instance.
    • setDomainName

      public Event setDomainName(String domainName)
      Set the domain name of this event.
      Overrides:
      setDomainName in class CalendarNode
      Parameters:
      domainName - The domain name.
      Returns:
      The Event instance.
    • setTimezone

      public Event setTimezone(ITimezone timezone)
      Set the timezone of this event.
      Parameters:
      timezone - The time zone to set.
      Returns:
      The Event instance.
    • resolve

      public String resolve()
      Specified by:
      resolve in class CalendarNode