Interface StartEndComponent

All Known Subinterfaces:
EventEntity
All Known Implementing Classes:
BwEvent, BwEventAnnotation, BwEventNewWrapper, BwEventObj, BwEventProxy

public interface StartEndComponent
This interface is implemented by entities which have a start and an end.

They may also have a duration, though it's meaning differs.

For event and todo entities we may have an end specified with a duration or with a date or date/time value, or o end date at all.

We always calculate an end date internally, so we do not need to use the duration until we render the object.

Author:
Mike Douglass douglm - bedework.edu
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final char
    End specified with a date(time)
    static final char
    Duration specified
    static final char
    No end or duration
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the event's end
    Get the start time for the entity
    Get the duration for the entity if an event or todo, or the requested duration for a free/busy object.
    char
    get the endType flag for an event or todo
    A todo may have no start/end.
    void
    Set the end or due date for the entity
    void
    Set the start time for the entity
    void
    Set the duration for the entity if an event or todo, or the requested duration for a free/busy object.
    void
    setEndType(char val)
    Set the endType flag for an event or todo
    void
    A todo may have no start/end.
  • Field Details

  • Method Details

    • setDtstart

      void setDtstart(BwDateTime val)
      Set the start time for the entity
      Parameters:
      val - Event's start
    • getDtstart

      BwDateTime getDtstart()
      Get the start time for the entity
      Returns:
      The start
    • setDtend

      void setDtend(BwDateTime val)
      Set the end or due date for the entity
      Parameters:
      val - end
    • getDtend

      BwDateTime getDtend()
      Get the event's end
      Returns:
      The event's end
    • setEndType

      void setEndType(char val)
      Set the endType flag for an event or todo
      Parameters:
      val - char endType
    • getEndType

      char getEndType()
      get the endType flag for an event or todo
      Returns:
      char end Type
    • setDuration

      void setDuration(String val)
      Set the duration for the entity if an event or todo, or the requested duration for a free/busy object.
      Parameters:
      val - string duration
    • getDuration

      String getDuration()
      Get the duration for the entity if an event or todo, or the requested duration for a free/busy object.
      Returns:
      the event's duration
    • setNoStart

      void setNoStart(Boolean val)
      A todo may have no start/end. If so it always appears in the current day until completed.
      Parameters:
      val -
    • getNoStart

      Boolean getNoStart()
      A todo may have no start/end. If so it always appears in the current day until completed.
      Returns:
      true for no start/end