Class Calendar

    • Constructor Detail

      • Calendar

        public Calendar()
    • Method Detail

      • 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 java.util.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,
                                    org.w3c.dom.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.