public class Schedule
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
CurrentVersion
Current version of schedule file format.
|
static int |
MinSupportedVersion |
Constructor and Description |
---|
Schedule()
Initializes a new instance of the
Schedule class. |
Modifier and Type | Method and Description |
---|---|
void |
addScheduleListener(ScheduleListener listener)
Adds a
ScheduleListener to the schedule. |
void |
cancelCompositeOperation()
Stops recording undo/redo commands into a
CompositeCommand and
discards the records created so far. |
void |
clear()
Clears all items, tasks, locations, contacts and
resources contained in this schedule.
|
void |
commitCompositeOperation()
Stops recording undo/redo commands into a
CompositeCommand and
saves the composite in the history queue. |
void |
dispose()
Disposes any resources used by this
Schedule object. |
void |
endItemChange(ChangeItemCommand command)
Ends a previously started modification on an item.
|
void |
executeCommand(Command command)
Executes the specified command on this schedule.
|
protected void |
finalize() |
ItemList |
getAllItems()
Gets all items in the schedule, both normal and hidden ones.
|
ItemList |
getAllItems(DateTime startTime,
DateTime endTime)
Retrieves a list of all events, including recurrent item
instances, scheduled to occur in the specified time interval.
|
ItemList |
getAllItems(DateTime startDate,
DateTime endDate,
Contact contact)
Retrieves a list of all events, including recurrent item
instances, scheduled to occur in the specified time interval
for a specific
Contact object. |
ItemList |
getAllItems(DateTime startDate,
DateTime endDate,
Location location)
Retrieves a list of all events, including recurrent item
instances, scheduled to occur in the specified time interval
for a specific
Location object. |
ItemList |
getAllItems(DateTime startDate,
DateTime endDate,
Resource resource)
Retrieves a list of all events, including recurrent item
instances, scheduled to occur in the specified time interval
for a specific
Resource object. |
ItemList |
getAllItems(DateTime startDate,
DateTime endDate,
Task task)
Retrieves a list of all events, including recurrent item
instances, scheduled to occur in the specified time interval
for a specific Task object.
|
boolean |
getCanRedo()
Gets a value indicating whether there is a command in the redo history which can be redone.
|
boolean |
getCanUndo()
Gets a value indicating whether there is a command in the undo history which can be undone.
|
ResourceList<Contact> |
getContacts()
Gets all contacts defined in the
Schedule . |
boolean |
getDisableReminders()
Gets a value indicating whether to completely disable reminders in the whole schedule.
|
DateTime |
getFreePeriod(DateTime from,
DateTime to,
Duration duration)
Returns the next period after the specified date with
the specified duration which is not occupied by items.
|
DateTime |
getFreePeriodByContact(DateTime from,
DateTime to,
Duration duration,
ResourceList<Contact> contacts)
Returns the next period after the specified date with
the specified duration, which is not occupied by items
associated with the specified contacts.
|
DateTime |
getFreePeriodByLocation(DateTime from,
DateTime to,
Duration duration,
ResourceList<Location> locations)
Returns the next period after the specified date with
the specified duration, which is not occupied by items
associated with the specified locations.
|
DateTime |
getFreePeriodByResource(DateTime from,
DateTime to,
Duration duration,
ResourceList<Resource> resources)
Returns the next period after the specified date with
the specified duration, which is not occupied by items
associated with the specified resources.
|
DateTime |
getFreePeriodByTask(DateTime from,
DateTime to,
Duration duration,
ResourceList<Task> tasks)
Returns the next period after the specified date with
the specified duration, which is not occupied by items
associated with the specified tasks.
|
ItemList |
getItems()
Gets all scheduled items.
|
ItemList |
getItemsToRemindOf()
Retrieves a list with all items that must be reminded of at the current time.
|
ItemList |
getItemsToRemindOf(DateTime time)
Retrieves a list with all items that must be reminded of at the specified time.
|
ItemList |
getItemsToRemindOf(DateTime start,
DateTime end)
Retrieves a list with all items that must be reminded of
in the specified interval.
|
ResourceList<Location> |
getLocations()
Gets all locations defined in the
Schedule . |
int |
getRemindersCheckInterval()
Gets the interval between reminder checks, expressed in seconds.
|
ResourceList<Resource> |
getResources()
Gets all resources defined in the
Schedule . |
ResourceList<Task> |
getTasks()
Gets all tasks defined in this
Schedule . |
ResourceList<Task> |
getTasksToRemindOf()
Retrieves a list of all tasks that must be reminded of at the current time.
|
ResourceList<Task> |
getTasksToRemindOf(DateTime time)
Retrieves a list of all tasks that must be reminded of at the specified time.
|
ResourceList<Task> |
getTasksToRemindOf(DateTime start,
DateTime end)
Retrieves a list of all tasks that must be reminded of in the specified interval.
|
boolean |
getUndoEnabled()
Gets a value indicating whether saving action records for later undo is enabled.
|
static boolean |
isClassRegistered(java.lang.Class<?> classType)
Checks whether the specified item or resource type is registered for serialization.
|
static boolean |
isClassRegistered(java.lang.String classId)
Checks whether an item or resource type with the specified id is registered for serialization.
|
static boolean |
isClientClassRegistered(java.lang.String classId)
Checks whether an item or resource type with the specified id is registered for JSON serialization.
|
void |
loadFrom(java.lang.String fileName,
ContentType contentType)
Loads schedule data from a file.
|
void |
loadFromJson(java.lang.String json)
Loads the schedule from a JSON-formatted string.
|
void |
loadFromJsonObject(JsonObject obj,
JsonSerializationContext context)
Loads the schedule from a JSON object previously created by
saveToJson() . |
void |
loadFromString(java.lang.String content,
ContentType contentType)
Decodes schedule data from a string previously created by
saveToString(com.mindfusion.scheduling.model.ContentType) . |
void |
loadFromXml(org.w3c.dom.Document document)
Loads schedule data from an XML document.
|
protected void |
onActionRedone(UndoEvent e)
Raises the
actionRedone event. |
protected void |
onActionUndone(UndoEvent e)
Raises the
actionUndone event. |
protected void |
onDeserializeTag(SerializeTagEvent e)
Raises the
deserializeTag event. |
protected void |
onExceptionCreated(ItemEvent e)
Raises the
exceptionCreated event. |
protected void |
onInstantiateItem(InstantiateItemEvent e)
Raises the
instantiateItem event. |
protected void |
onInstantiateResource(InstantiateResourceEvent e)
Raises the
instantiateResource event. |
protected void |
onItemEndTimeChanged(ItemTimeEvent e)
Raises the
itemEndTimeChanged event. |
protected void |
onItemEndTimeTriggered(ItemEvent e)
Raises the
itemEndTimeTriggered event. |
protected void |
onItemReminderTriggered(ItemEvent e)
Raises the
itemReminderTriggered event. |
protected void |
onItemResourceChanged(ItemEvent e)
Raises the
itemResourceChanged event. |
protected void |
onItemStartTimeChanged(ItemTimeEvent e)
Raises the
itemStartTimeChanged event. |
protected void |
onItemVisualsChanged(ItemEvent e)
Raises the
itemVisualsChanged event. |
protected void |
onJsonDeserializeTag(JsonSerializeTagEventArgs e) |
protected void |
onJsonSerializeTag(JsonSerializeTagEventArgs e) |
protected void |
onRecurrenceReset(ItemEvent e)
Raises the
recurrenceReset event. |
protected void |
onSerializeTag(SerializeTagEvent e)
Raises the
serializeTag event. |
protected void |
onTaskReminderTriggered(TaskEvent e)
Raises the
taskReminderTriggered event. |
void |
redo()
Executes again an action saved in the command history.
|
static void |
registerItemClass(java.lang.Class<? extends Item> itemClass,
java.lang.String classId,
int classVersion)
Registers a schedule item class for serialization support.
|
static void |
registerItemClass(java.lang.Class<? extends Item> itemClass,
java.lang.String classId,
int classVersion,
java.lang.String clientClass)
Registers a schedule item class for serialization support.
|
static void |
registerResourceClass(java.lang.Class<? extends Resource> resourceClass,
java.lang.String classId,
int classVersion)
Registers a resource class for serialization support.
|
static void |
registerResourceClass(java.lang.Class<? extends Resource> resourceClass,
java.lang.String classId,
int classVersion,
java.lang.String clientClass)
Registers a resource class for serialization support.
|
void |
removeScheduleListener(ScheduleListener listener)
Removes the specified
ScheduleListener from the schedule. |
void |
saveTo(java.lang.String fileName,
ContentType contentType)
Saves the schedule to a file.
|
java.lang.String |
saveToJson()
Saves the schedule to a JSON-formatted string.
|
void |
saveToJsonObject(JsonObject obj,
JsonSerializationContext context)
Saves the schedule to a JSON object.
|
java.lang.String |
saveToString(ContentType contentType)
Encodes the schedule into a string.
|
void |
saveToXml(org.w3c.dom.Document document)
Saves the schedule to an XML document.
|
void |
setDisableReminders(boolean value)
Sets a value indicating whether to completely disable reminders in the whole schedule.
|
void |
setRemindersCheckInterval(int value)
Sets the interval between reminder checks, expressed in seconds.
|
void |
setUndoEnabled(boolean value)
Sets a value indicating whether saving action records for later undo is enabled.
|
void |
startCompositeOperation()
Starts recording undo/redo commands into a
CompositeCommand . |
ChangeItemCommand |
startItemChange(Item item)
Begins a modification on the specified item.
|
void |
undo()
Undoes an action saved in the command history.
|
static void |
unregisterClass(java.lang.Class<?> classType)
Unregisters the specified item or resource type from the system.
|
static void |
unregisterClass(java.lang.String classId)
Unregisters the item or resource with the specified class id from the system.
|
public static final int CurrentVersion
public static final int MinSupportedVersion
public Schedule()
Schedule
class.protected void finalize()
finalize
in class java.lang.Object
public void dispose()
public void saveTo(java.lang.String fileName, ContentType contentType)
Use loadFrom
to restore the data later.
fileName
- The path of the file to save to.contentType
- One of the ContentType
constants.public void loadFrom(java.lang.String fileName, ContentType contentType)
This method loads the schedule data from a file where it was
previously saved by a call to saveTo
.
Any data contained in the schedule is discarded before the items
stored in the file are loaded.
fileName
- The name of the file from which to load the schedule.contentType
- One of the ContentType
constants.public void saveToXml(org.w3c.dom.Document document)
Saves the schedule data as tags in an XML document. Use loadFromXml(org.w3c.dom.Document)
to restore the schedule data later.
document
- A Document
object that allows adding data to the XML document.public void loadFromXml(org.w3c.dom.Document document)
Loads schedule items from an XML document previously created by saveToXml(org.w3c.dom.Document)
.
Any data contained in the schedule is discarded before the items
stored in the reader are loaded.
document
- A Document
instance that allows reading data from the XML document.public java.lang.String saveToJson()
loadFromJson(java.lang.String)
to restore the schedule data later.public void saveToJsonObject(JsonObject obj, JsonSerializationContext context)
obj
- A JsonObject
the schedule's data should be stored into.context
- A JsonSerializationContext
object providing contextual information about the serialization process and helper serialization methods.public void loadFromJson(java.lang.String json)
json
- A string created by the saveToJson()
method.public void loadFromJsonObject(JsonObject obj, JsonSerializationContext context)
saveToJson()
.obj
- A JsonObject containing schedule data.context
- A JsonSerializationContext
object providing contextual information about the serialization process and helper serialization methods.public java.lang.String saveToString(ContentType contentType) throws java.io.IOException
Saves the schedule data into a JSON or XML string.
Use loadFromString(java.lang.String, com.mindfusion.scheduling.model.ContentType)
to restore the data later.
contentType
- One of the ContentType
constants.java.io.IOException
public void loadFromString(java.lang.String content, ContentType contentType) throws java.io.IOException
saveToString(com.mindfusion.scheduling.model.ContentType)
.
This method loads from a string data previously saved by saveToString(com.mindfusion.scheduling.model.ContentType)
.
content
- A string that contains schedule data.contentType
- One of the ContentType
constants.java.io.IOException
public static void registerItemClass(java.lang.Class<? extends Item> itemClass, java.lang.String classId, int classVersion)
When using custom item classes, use this method to enable saving and loading the custom item objects to/from XML files. The class id string is written before each item's data, and when loading items later that string indicates to the schedule what class instance to create and let it load the subsequent data. The following class identifiers are reserved and should not be used: 'std:appointment', 'std:resource', 'std:contact', 'std:location' and 'std:task'.
The version identifier must be increased when the format in which items are saved changes. It is used when loading files to let your application load items data from an older format.
Note: All custom item classes must provide a parameterless constructor. Failing to do so would result in exceptions during the load process, since the schedule will be unable to create custom items.
itemClass
- A Class instance identifying the item class.classId
- A class identifier to use when saving and loading items
of the specified type.classVersion
- A revision number of the item's class serialization format.public static void registerItemClass(java.lang.Class<? extends Item> itemClass, java.lang.String classId, int classVersion, java.lang.String clientClass)
itemClass
- A Type instance identifying the item class.classId
- A class identifier to use when saving and loading items of the specified type.classVersion
- A revision number of the item's class serialization format.clientClass
- A class identifier to use when serializing objects of the specified type to JSON.public static void registerResourceClass(java.lang.Class<? extends Resource> resourceClass, java.lang.String classId, int classVersion)
When using custom resource classes, use this method to enable saving and loading the custom resource objects to/from XML files. The class id string is written before each resource's data, and when loading resources later that string indicates to the schedule what class instance to create and let it load the subsequent data. The following class identifiers are reserved and should not be used: 'std:appointment', 'std:resource', 'std:contact', 'std:location' and 'std:task'.
The version identifier must be increased when the format in which resources are saved changes. It is used when loading files to let your application load resources data from an older format.
Note: All custom resource classes must provide a parameterless constructor. Failing to do so would result in exceptions during the load process, since the schedule will be unable to create custom resources.
resourceClass
- A Class instance identifying the resource class.classId
- A class identifier to use when saving and loading resourcesclassVersion
- A revision number of the resource's class serialization format.public static void registerResourceClass(java.lang.Class<? extends Resource> resourceClass, java.lang.String classId, int classVersion, java.lang.String clientClass)
resourceClass
- A Type instance identifying the resource class.classId
- A class identifier to use when saving and loading resources of the specified type.classVersion
- A revision number of the resource's class serialization format.clientClass
- A class identifier to use when serializing objects of the specified type to JSON.public static void unregisterClass(java.lang.Class<?> classType)
classType
- The type of an item or a resource.public static void unregisterClass(java.lang.String classId)
classId
- The string identifier of an item or resource class.public static boolean isClassRegistered(java.lang.Class<?> classType)
classType
- The type of an item or a resource.public static boolean isClassRegistered(java.lang.String classId)
classId
- The string identifier of an item or resource class.public static boolean isClientClassRegistered(java.lang.String classId)
classId
- The string identifier of an item or resource class.public void clear()
protected void onItemReminderTriggered(ItemEvent e)
itemReminderTriggered
event.e
- An object, containing the event data.protected void onItemEndTimeTriggered(ItemEvent e)
itemEndTimeTriggered
event.e
- An object, containing the event data.protected void onTaskReminderTriggered(TaskEvent e)
taskReminderTriggered
event.e
- An object, containing the event data.protected void onExceptionCreated(ItemEvent e)
exceptionCreated
event.e
- An object, containing the event data.protected void onRecurrenceReset(ItemEvent e)
recurrenceReset
event.e
- An object, containing the event data.protected void onItemStartTimeChanged(ItemTimeEvent e)
itemStartTimeChanged
event.e
- An object, containing the event data.protected void onItemEndTimeChanged(ItemTimeEvent e)
itemEndTimeChanged
event.e
- An object, containing the event data.protected void onItemResourceChanged(ItemEvent e)
itemResourceChanged
event.e
- An object, containing the event data.protected void onItemVisualsChanged(ItemEvent e)
itemVisualsChanged
event.e
- An object, containing the event data.protected void onInstantiateItem(InstantiateItemEvent e)
instantiateItem
event.e
- An object, containing the event data.protected void onInstantiateResource(InstantiateResourceEvent e)
instantiateResource
event.e
- An object, containing the event data.protected void onSerializeTag(SerializeTagEvent e)
serializeTag
event.e
- An object, containing the event data.protected void onDeserializeTag(SerializeTagEvent e)
deserializeTag
event.e
- An object, containing the event data.protected void onJsonSerializeTag(JsonSerializeTagEventArgs e)
protected void onJsonDeserializeTag(JsonSerializeTagEventArgs e)
public ItemList getAllItems(DateTime startTime, DateTime endTime)
If a recurring event occurs in the specified interval, each
occurrence is represented by an Item
instance whose
getRecurrenceState
is Occurrence
.
startTime
- Time interval start.endTime
- Time interval end.public ItemList getAllItems(DateTime startDate, DateTime endDate, Contact contact)
Contact
object.
If a recurring event occurs in the specified interval, each
occurrence is represented by an Item
instance whose
getRecurrenceState
is Occurrence
.
startDate
- Specifies the start of the time period.endDate
- Specifies the end of the time period.contact
- A Contact
instance that must be related to the items.public ItemList getAllItems(DateTime startDate, DateTime endDate, Resource resource)
Resource
object.
If a recurring event occurs in the specified interval, each
occurrence is represented by an Item
instance whose
getRecurrenceState
is Occurrence
.
startDate
- Specifies the start of the time period.endDate
- Specifies the end of the time period.resource
- A Resource
instance that must be related to the items.public ItemList getAllItems(DateTime startDate, DateTime endDate, Location location)
Location
object.
If a recurring event occurs in the specified interval, each
occurrence is represented by an Item
instance whose
getRecurrenceState
is Occurrence
.
startDate
- Specifies the start of the time period.endDate
- Specifies the end of the time period.location
- A Location
instance that must be related to the items.public ItemList getAllItems(DateTime startDate, DateTime endDate, Task task)
If a recurring event occurs in the specified interval, each
occurrence is represented by an Item
instance whose
getRecurrenceState
is Occurrence
.
startDate
- Specifies the start of the time period.endDate
- Specifies the end of the time period.task
- A Task
instance that must be related to the items.public ItemList getItemsToRemindOf()
public ItemList getItemsToRemindOf(DateTime time)
time
- Determine whether any reminders should be displayed at this time.public ItemList getItemsToRemindOf(DateTime start, DateTime end)
start
- The start of the time interval containing the items of interest.end
- The end of the time interval containing the items of interest.public ResourceList<Task> getTasksToRemindOf()
public ResourceList<Task> getTasksToRemindOf(DateTime time)
time
- Determine whether any task reminders should be displayed at this time.public ResourceList<Task> getTasksToRemindOf(DateTime start, DateTime end)
start
- The start of the time interval containing the tasks of interest.end
- The end of the time interval containing the tasks of interest.public DateTime getFreePeriod(DateTime from, DateTime to, Duration duration)
If there are recurring items associated with a resource in the specified list, the function execution might take very long if a period with the specified duration doesn't exist.
from
- The start date of the interval in which to search for a free period.to
- The end date of the interval in which to search for a free period.duration
- The required minimum duration of the period.DateTime
object representing the start time
of the period found or DateTime.MinValue
if none.public DateTime getFreePeriodByResource(DateTime from, DateTime to, Duration duration, ResourceList<Resource> resources)
If there are recurring items associated with a resource in the specified list, the function execution might take very long if a period with the specified duration doesn't exist.
from
- The start date of the interval in which to search for a free period.to
- The end date of the interval in which to search for a free period.duration
- The required minimum duration of the period.resources
- The resources whose items should be considered when looking
for the free period.DateTime
object representing the start time
of the period found or DateTime.MinValue
if none.public DateTime getFreePeriodByContact(DateTime from, DateTime to, Duration duration, ResourceList<Contact> contacts)
If there are recurring items associated with a resource in the specified list, the function execution might take very long if a period with the specified duration doesn't exist.
from
- The start date of the interval in which to search for a free period.to
- The end date of the interval in which to search for a free period.duration
- The required minimum duration of the period.contacts
- The contacts whose items should be considered when looking for
the free period.DateTime
object representing the start time
of the period found or DateTime.MinValue
if none.public DateTime getFreePeriodByLocation(DateTime from, DateTime to, Duration duration, ResourceList<Location> locations)
If there are recurring items associated with a resource in the specified list, the function execution might take very long if a period with the specified duration doesn't exist.
from
- The start date of the interval in which to search for a free period.to
- The end date of the interval in which to search for a free period.duration
- The required minimum duration of the period.locations
- The locations whose items should be considered when looking
for the free period.DateTime
object representing the start time
of the period found or DateTime.MinValue
if none.public DateTime getFreePeriodByTask(DateTime from, DateTime to, Duration duration, ResourceList<Task> tasks)
If there are recurring items associated with a resource in the specified list, the function execution might take very long if a period with the specified duration doesn't exist.
from
- The start date of the interval in which to search for a free period.to
- The end date of the interval in which to search for a free period.duration
- The required minimum duration of the period.tasks
- The tasks whose items should be considered when looking
for the free period.DateTime
object representing the start time
of the period found or DateTime.MinValue
if none.public void startCompositeOperation()
CompositeCommand
.
After the schedule modifications are done, call commitCompositeOperation()
or cancelCompositeOperation()
.
public void cancelCompositeOperation()
CompositeCommand
and
discards the records created so far.
You must call either commitCompositeOperation()
or this method when
the schedule modifications are done after a startCompositeOperation()
call.
public void commitCompositeOperation()
CompositeCommand
and
saves the composite in the history queue.
You must call either cancelCompositeOperation()
or this method when
the schedule modifications are done after a startCompositeOperation()
call.
public ChangeItemCommand startItemChange(Item item)
endItemChange(com.mindfusion.scheduling.model.ChangeItemCommand)
is invoked.public void endItemChange(ChangeItemCommand command)
public void executeCommand(Command command)
If undo/redo is enabled, the command is saved in the undo history or added to the active composite command.
AddItemCommand
and RemoveItemCommand
objects are created automatically
by the control when adding or removing items, both programmatically or interactively.
Calling this method explicitly could be necessary in order to save item's state for
later undo using a ChangeItemCommand
, or to run a custom operation represented
by a class derived from Command
.
command
- The Command
to execute.public void undo()
The control supports unlimited undo/redo depth. This method moves the "current command"
pointer one position back, and calling it again will undo the previous command. The
commands can later be redone by calling redo()
.
public void redo()
The control supports unlimited undo/redo depth. This method moves the "current command"
pointer one position back, and calling it again will undo the previous command. The
commands can be undone by calling undo()
.
protected void onActionUndone(UndoEvent e)
actionUndone
event.e
- An object, containing the event data.protected void onActionRedone(UndoEvent e)
actionRedone
event.e
- An object, containing the event data.public ItemList getItems()
The Calendar
component displays each element of this collection in the time
cells corresponding to the item's StartTime
and
EndTime
.
ItemList
class containing all items in the schedule.public ItemList getAllItems()
This list is usually used by item processors in order to perform specific actions on all items in the schedule.
public ResourceList<Task> getTasks()
Schedule
.
If you need to assign a Task
object to schedule items, add the task
to this collection before assigning it to the item.
ResourceList
class containing references
to the tasks assigned to the schedule.public ResourceList<Contact> getContacts()
Schedule
.
Add contacts to this collection before assigning them to a schedule item.
ResourceList
class containing all contacts
used in the schedule.public ResourceList<Resource> getResources()
Schedule
.
Add resources to this collection before assigning them to schedule items.
ResourceList
class containing all resources
associated with this schedule.public ResourceList<Location> getLocations()
Schedule
.
Add locations to this collection before assigning them to schedule items.
ResourceList
class containing all locations
associated with this schedule.public boolean getDisableReminders()
public void setDisableReminders(boolean value)
value
- true to disable reminders; false to enable them. The default is false.public int getRemindersCheckInterval()
public void setRemindersCheckInterval(int value)
value
- A positive integer value specifying the time between subsequent reminder checks.public boolean getUndoEnabled()
To undo the last recorded action, call the undo()
method. It can be redone
again by calling redo()
. Custom operations can be integrated into the
undo/redo system by deriving from the Command
class and running the
operations by means of the executeCommand(com.mindfusion.scheduling.model.Command)
method.
public void setUndoEnabled(boolean value)
To undo the last recorded action, call the undo()
method. It can be redone
again by calling redo()
. Custom operations can be integrated into the
undo/redo system by deriving from the Command
class and running the
operations by means of the executeCommand(com.mindfusion.scheduling.model.Command)
method.
value
- true, to save actions for later undo; otherwise, false. The default is false.public boolean getCanUndo()
public boolean getCanRedo()
public void addScheduleListener(ScheduleListener listener)
ScheduleListener
to the schedule.listener
- The ScheduleListener
to be added.public void removeScheduleListener(ScheduleListener listener)
ScheduleListener
from the schedule.listener
- The listener to be removed.