Package com.uc4.api.objects
Class Calendar
java.lang.Object
com.uc4.api.objects.UC4Object
com.uc4.api.objects.Calendar
- All Implemented Interfaces:
IChangeListener
Calendar object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddKeyword(CalendarKeyword keyword) Adds the specified calendar keyword to this calendar.getCalendarkeyword(UC4ObjectName keyword) Gets the specified calendar keyword from this calendar.header()Returns the header data of this object.booleanReturnstrueif this Object can be executed.Iterator overCalendarKeyword.protected voidloadContent(com.uc4.util.XMLDocument doc, ConnectionAttributes info) booleanremoveKeyword(UC4ObjectName keyword) Removes the specified calendar keyword from this calendar It is not possible to remove all keywords.intsize()Returns the number of keywords in this calendar.protected voidstoreContent(com.uc4.util.XMLDocument doc, Element objectElement, ConnectionAttributes sessionInfo) voidupdate()The update method is called if the object changedMethods inherited from class com.uc4.api.objects.UC4Object
docu, getAccess, getIdnr, getModCount, getName, getObjectClient, getType, isOldVersion, load, store, validate
-
Constructor Details
-
Calendar
public Calendar()
-
-
Method Details
-
header
Returns the header data of this object. This is the information of the header tab in the dialog client.- Returns:
- header
-
loadContent
-
keywordIterator
Iterator overCalendarKeyword. This iterator can be used to read calendar keywords.- Returns:
- Iterator over calendar keywords
-
addKeyword
Adds the specified calendar keyword to this calendar. The keyword will be overwritten if it already exsits.- Parameters:
keyword- Calendar keyword
-
removeKeyword
Removes the specified calendar keyword from this calendar It is not possible to remove all keywords. AnIllegalStateExceptionwill 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
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:IChangeListenerThe update method is called if the object changed- Specified by:
updatein interfaceIChangeListener
-
size
public int size()Returns the number of keywords in this calendar.- Returns:
- Number of keywords
-
isExecutable
public boolean isExecutable()Description copied from class:UC4ObjectReturnstrueif this Object can be executed.- Specified by:
isExecutablein classUC4Object- Returns:
- true if the Object can be executed, false if not.
-