| Function |
Defined By |
|
AddedRemovedEvent(type, manager)
|
[Constructor] AddedRemovedEvent
|
Creates new AddedRemovedEvent instance.
| |
type : String
String representing the event type ("added" or "removed")
|
| |
manager : CanvasManager
The CanvasManager instance that the element is being added or removed.
|
|
|
|
cancelEvent()
|
DispatcherEvent
|
Prevents processing of any subsequent event handlers
|
|
|
clone()
|
DispatcherEvent
|
Duplicates an instance of an Event or Event subclass.
The event dispatcher calls this when dispatching or re-dispatching events to multiple targets.
When creating a custom event class, you should override this and call the base class's clone()
then copy the new event properties to the cloned instance.
| |
returns : DispatcherEvent
A new event object instance identical to the cloned instance.
|
|
|
|
getIsCanceled()
|
DispatcherEvent
|
Checks if the event has been canceled
| |
returns : boolean
Returns true if the event has been canceled, otherwise false
|
|
|
|
getManager()
|
AddedRemovedEvent
|
Gets the CanvasManager instance that the Element has been added or removed.
Note that when an element is removed, the Element is no longer associated with the CanvasManager
so you must use this method to get the appropriate CanvasManager reference.
| |
returns : CanvasManager
The CanvasManager instance the element is now associated with when added, or no longer associated with when removed.
|
|
|
|
getTarget()
|
DispatcherEvent
|
Gets event target
| |
returns : Object
Object that originally dispatched the event
|
|
|
|
getType()
|
DispatcherEvent
|
Gets the event type
| |
returns : String
String representing the event type
|
|
|