public class ScheduleAdapter extends java.lang.Object implements ScheduleListener
ScheduleListener
interface.
This lets you override only the handlers for the events you are interested in, instead of
implementing all methods of ScheduleListener
.Constructor and Description |
---|
ScheduleAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
actionRedone(UndoEvent e)
Raised when an action is redone.
|
void |
actionUndone(UndoEvent e)
Raised when an action is undone.
|
void |
changed(java.util.EventObject e)
Invoked when the object is changed.
|
void |
deserializeTag(SerializeTagEvent e)
Raised during XML deserialization to enable users to perform
custom deserialization of the tag values of items and resources.
|
void |
exceptionCreated(ItemEvent e)
Raised when a recurrence exception item is created.
|
void |
instantiateItem(InstantiateItemEvent e)
Raised when deserializing a custom item whose type has not been registered.
|
void |
instantiateResource(InstantiateResourceEvent e)
Raised when deserializing a custom resource whose type has not been registered.
|
void |
itemEndTimeChanged(ItemTimeEvent e)
Raised when the
getEndTime of an item in this
Schedule has changed. |
void |
itemEndTimeTriggered(ItemEvent e)
Raised when the reminder for an item is triggered, but taking
into consideration the item's end time for the purpose.
|
void |
itemReminderTriggered(ItemEvent e)
Raised when the reminder for an item is triggered.
|
void |
itemResourceChanged(ItemEvent e)
Raised when any of the associated resources of an item in the schedule has changed.
|
void |
itemsChanged(ListChangedEvent<Item> e)
Raised when the
Items list has been changed. |
void |
itemStartTimeChanged(ItemTimeEvent e)
Raised when the
getStartTime of an item in this
Schedule has changed. |
void |
itemVisualsChanged(ItemEvent e)
Raised when the appearance of an item in the schedule has changed.
|
void |
jsonDeserializeTag(JsonSerializeTagEventArgs e)
Raised during Json deserialization to enable users to perform
custom deserialization of the tag values of items and resources.
|
void |
jsonSerializeTag(JsonSerializeTagEventArgs e)
Raised during Json serialization to enable users to perform
custom serialization of the tag values of items and resources.
|
void |
recurrenceReset(ItemEvent e)
Raised when the recurrence pattern associated with an item has been reset,
causing all associated exception items to be lost.
|
void |
serializeTag(SerializeTagEvent e)
Raised during XML serialization to enable users to perform
custom serialization of the tag values of items and resources.
|
void |
taskReminderTriggered(TaskEvent e)
Raised when the reminder for a task is triggered.
|
public void changed(java.util.EventObject e)
changed
in interface ChangeListener
e
- An EventObject
object.public void itemsChanged(ListChangedEvent<Item> e)
Items
list has been changed.itemsChanged
in interface ScheduleListener
e
- A ListChangedEvent
object.public void itemReminderTriggered(ItemEvent e)
itemReminderTriggered
in interface ScheduleListener
e
- An ItemEvent
object.public void itemEndTimeTriggered(ItemEvent e)
itemEndTimeTriggered
in interface ScheduleListener
e
- An ItemEvent
object.public void taskReminderTriggered(TaskEvent e)
taskReminderTriggered
in interface ScheduleListener
e
- A TaskEvent
object.public void exceptionCreated(ItemEvent e)
An exception is created if a user drags an occurrence of a recurring event thus changing its time, or changes its text.
exceptionCreated
in interface ScheduleListener
e
- An ItemEvent
object.public void recurrenceReset(ItemEvent e)
The recurrence is reset when the value of any of the properties that define it is changed. The recurrence is also reset when it is associated to or dissociated from an item.
recurrenceReset
in interface ScheduleListener
e
- An ItemEvent
object.public void itemStartTimeChanged(ItemTimeEvent e)
getStartTime
of an item in this
Schedule
has changed.
The Time
property provides the previous
StartTime
value of the item.
itemStartTimeChanged
in interface ScheduleListener
e
- An ItemTimeEvent
object.public void itemEndTimeChanged(ItemTimeEvent e)
getEndTime
of an item in this
Schedule
has changed.
The Time
property provides the previous
EndTime
value of the item.
itemEndTimeChanged
in interface ScheduleListener
e
- An ItemTimeEvent
object.public void itemResourceChanged(ItemEvent e)
itemResourceChanged
in interface ScheduleListener
e
- An ItemEvent
object.public void itemVisualsChanged(ItemEvent e)
itemVisualsChanged
in interface ScheduleListener
e
- An ItemEvent
object.public void instantiateItem(InstantiateItemEvent e)
This event is being raised during deserialization for all custom items whose
types have not been previously registered within the system through a call
to Schedule.registerItemClass(java.lang.Class<? extends com.mindfusion.scheduling.model.Item>, java.lang.String, int)
. The event provides an alternative way
for instantiating item of custom types.
instantiateItem
in interface ScheduleListener
e
- An InstantiateItemEvent
object.public void instantiateResource(InstantiateResourceEvent e)
This event is being raised during deserialization for all custom resources whose
types have not been previously registered within the system through a call to
Schedule.registerResourceClass(java.lang.Class<? extends com.mindfusion.scheduling.model.Resource>, java.lang.String, int)
. The event provides an alternative way
for instantiating resources of custom types.
instantiateResource
in interface ScheduleListener
e
- An InstantiateResourceEvent
object.public void serializeTag(SerializeTagEvent e)
This event is being raised during the serialization of item and resource tag values in a XML document. If the event is not handled the system will try to serialize the tags as an arbitrary objects.
serializeTag
in interface ScheduleListener
e
- A SerializeTagEvent
object.public void deserializeTag(SerializeTagEvent e)
This event is being raised during the deserialization of item and resource tag values from a XML document. If the event is not handled the system will try to deserialize the tags as an arbitrary objects.
deserializeTag
in interface ScheduleListener
e
- A SerializeTagEvent
object.public void jsonSerializeTag(JsonSerializeTagEventArgs e)
This event is being raised during the serialization of item and resource tag values in a JsonObject. If the event is not handled the system will try to serialize the tags as an arbitrary objects.
jsonSerializeTag
in interface ScheduleListener
e
- A JsonSerializeTagEventArgs
object.public void jsonDeserializeTag(JsonSerializeTagEventArgs e)
This event is being raised during the deserialization of item and resource tag values from a JsonObject. If the event is not handled the system will try to deserialize the tags as an arbitrary objects.
jsonDeserializeTag
in interface ScheduleListener
e
- A JsonSerializeTagEventArgs
object.public void actionUndone(UndoEvent e)
This event is raised during calls to undo
. It is raised
both for top-level commands and for the constituent actions of composite commands.
actionUndone
in interface ScheduleListener
e
- An UndoEvent
object.public void actionRedone(UndoEvent e)
This event is raised during calls to redo
. It is raised
both for top-level commands and for the constituent actions of composite commands.
actionRedone
in interface ScheduleListener
e
- An UndoEvent
object.