Class Calendar

java.lang.Object
com.uc4.api.objects.UC4Object
com.uc4.api.objects.Calendar
All Implemented Interfaces:
IChangeListener

public class Calendar extends UC4Object implements IChangeListener
Calendar object.
  • Constructor Details

    • Calendar

      public Calendar()
  • Method Details

    • header

      public Header header()
      Returns the header data of this object. This is the information of the header tab in the dialog client.
      Returns:
      header
    • loadContent

      protected void loadContent(com.uc4.util.XMLDocument doc, ConnectionAttributes info)
    • keywordIterator

      public Iterator<CalendarKeyword> keywordIterator()
      Iterator over CalendarKeyword. This iterator can be used to read calendar keywords.
      Returns:
      Iterator over calendar keywords
    • addKeyword

      public void addKeyword(CalendarKeyword keyword)
      Adds the specified calendar keyword to this calendar. The keyword will be overwritten if it already exsits.
      Parameters:
      keyword - Calendar keyword
    • removeKeyword

      public boolean removeKeyword(UC4ObjectName keyword)
      Removes the specified calendar keyword from this calendar It is not possible to remove all keywords. An IllegalStateException will be thrown if the last keyword should be deleted.
      Parameters:
      keyword - Name of the keyword
      Returns:
      True if and only if the keyword was successfully removed
    • getCalendarkeyword

      public CalendarKeyword getCalendarkeyword(UC4ObjectName keyword)
      Gets the specified calendar keyword from this calendar.
      Parameters:
      keyword - Name of the keyword
      Returns:
      the calendar keyword with the specified name or null
    • storeContent

      protected void storeContent(com.uc4.util.XMLDocument doc, Element objectElement, ConnectionAttributes sessionInfo)
    • update

      public void update()
      Description copied from interface: IChangeListener
      The update method is called if the object changed
      Specified by:
      update in interface IChangeListener
    • size

      public int size()
      Returns the number of keywords in this calendar.
      Returns:
      Number of keywords
    • isExecutable

      public boolean isExecutable()
      Description copied from class: UC4Object
      Returns true if this Object can be executed.
      Specified by:
      isExecutable in class UC4Object
      Returns:
      true if the Object can be executed, false if not.