Search
Schedule Members
Constructors Fields Methods
 


Represents a timetable of scheduled events. In the model-view architecture, Schedule instances are the documents whose data is displayed by Calendar instances - the views.

The following tables list the members exposed by the Schedule type.

 Public Constructors

  Name Description

Schedule

Initializes a new instance of the Schedule class.

 Public Fields

  Name Description

CurrentVersion

Current version of schedule file format.

 Public Methods

  Name Description

addScheduleListener

Adds a ScheduleListener to the schedule.

cancelCompositeOperation

Stops recording undo/redo commands into a CompositeCommand and discards the records created so far.

clear

Clears all items, tasks, locations, contacts and resources contained in this schedule.

commitCompositeOperation

Stops recording undo/redo commands into a CompositeCommand and saves the composite in the history queue.

dispose

Disposes any resources used by this Schedule object.

executeCommand

Executes the specified command on this schedule.

getAllItems

Overloaded. Retrieves a list of all events scheduled to occur in a specified time interval.

getCanRedo

Gets a value indicating whether there is a command in the redo history which can be redone.

getCanUndo

Gets a value indicating whether there is a command in the undo history which can be undone.

getContacts

Gets all contacts defined in the Schedule.

getDisableReminders

Gets a value indicating whether to completely disable reminders in the whole schedule.

getFreePeriod

Returns the next period after the specified date with the specified duration which is not occupied by items.

getFreePeriodByContact

Returns the next period after the specified date with the specified duration, which is not occupied by items associated with the specified contacts.

getFreePeriodByLocation

Returns the next period after the specified date with the specified duration, which is not occupied by items associated with the specified locations.

getFreePeriodByResource

Returns the next period after the specified date with the specified duration, which is not occupied by items associated with the specified resources.

getFreePeriodByTask

Returns the next period after the specified date with the specified duration, which is not occupied by items associated with the specified tasks.

getItems

Gets all scheduled items.

getItemsToRemindOf

Overloaded. Retrieves a list with all items that must be reminded of.

getLocations

Gets all locations defined in the Schedule.

getRemindersCheckInterval

Gets the interval between reminder checks, expressed in seconds.

getResources

Gets all resources defined in the Schedule.

getTasks

Gets all tasks defined in this Schedule.

getTasksToRemindOf

Overloaded. Retrieves a list of all tasks that must be reminded of.

getUndoEnabled

Gets a value indicating whether saving action records for later undo is enabled.

isClassRegistered

Overloaded. Checks whether an item or resource type is registered for serialization.

isClientClassRegistered

Checks whether an item or resource type with the specified id is registered for JSON serialization.

loadFrom

Loads schedule data from a file.

loadFromJson

Loads the schedule from a JSON-formatted string.

loadFromJsonObject

Loads the schedule from a JSON object previously created by saveToJson.

loadFromString

Decodes schedule data from a string previously created by saveToString.

loadFromXml

Loads schedule data from an XML document.

redo

Executes again an action saved in the command history.

registerItemClass

Overloaded.  

registerResourceClass

Overloaded.  

removeScheduleListener

Removes the specified ScheduleListener from the schedule.

saveTo

Saves the schedule to a file.

saveToJson

Saves the schedule to a JSON-formatted string. Use loadFromJson to restore the schedule data later.

saveToJsonObject

Saves the schedule to a JSON object.

saveToString

Encodes the schedule into a string.

saveToXml

Saves the schedule to an XML document.

setDisableReminders

Sets a value indicating whether to completely disable reminders in the whole schedule.

setRemindersCheckInterval

Sets the interval between reminder checks, expressed in seconds.

setUndoEnabled

Sets a value indicating whether saving action records for later undo is enabled.

startCompositeOperation

Starts recording undo/redo commands into a CompositeCommand.

undo

Undoes an action saved in the command history.

unregisterClass

Overloaded. Unregisters an item or resource type from the system.

 Protected Methods

 See Also