public class Calendar extends UC4Object implements IChangeListener
| Constructor and Description |
|---|
Calendar() |
| Modifier and Type | Method and Description |
|---|---|
void |
addKeyword(CalendarKeyword keyword)
Adds the specified calendar keyword to this calendar.
|
CalendarKeyword |
getCalendarkeyword(UC4ObjectName keyword)
Gets the specified calendar keyword from this calendar.
|
Header |
header()
Returns the header data of this object.
|
boolean |
isExecutable()
Returns
true if this Object can be executed. |
java.util.Iterator<CalendarKeyword> |
keywordIterator()
Iterator over
CalendarKeyword. |
protected void |
loadContent(com.uc4.util.XMLDocument doc,
ConnectionAttributes info) |
boolean |
removeKeyword(UC4ObjectName keyword)
Removes the specified calendar keyword from this calendar
It is not possible to remove all keywords.
|
int |
size()
Returns the number of keywords in this calendar.
|
protected void |
storeContent(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element objectElement,
ConnectionAttributes sessionInfo)
Stores the object specific data under the
objectElement element. |
void |
update()
The update method is called if the object changed
|
public Header header()
protected void loadContent(com.uc4.util.XMLDocument doc,
ConnectionAttributes info)
public java.util.Iterator<CalendarKeyword> keywordIterator()
CalendarKeyword. This iterator can be used
to read calendar keywords.public void addKeyword(CalendarKeyword keyword)
keyword - Calendar keywordpublic boolean removeKeyword(UC4ObjectName keyword)
IllegalStateException will be thrown if the last keyword should be deleted.keyword - Name of the keywordpublic CalendarKeyword getCalendarkeyword(UC4ObjectName keyword)
keyword - Name of the keywordprotected void storeContent(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element objectElement,
ConnectionAttributes sessionInfo)
UC4ObjectobjectElement element.doc - XML Document, used to create subelementsobjectElement - the newly created elements are children of the objectElement elementsessionInfo - Information about the current sessionpublic void update()
IChangeListenerupdate in interface IChangeListenerpublic int size()
public boolean isExecutable()
UC4Objecttrue if this Object can be executed.isExecutable in class UC4Object