Object
zEvent
zDragDropEvent
The zDragDropEvent
class is a subclass of zEvent,
derived specifically for use in the zDragDrop library. All events fired by the library
are instances of zDragDropEvent
.
Nicholas C. Zakas, http://www.nczonline.net/
1.0
1.0
zEventTarget |
relatedTarget An object related to the event but not the cause of it. |
zEvent
boolean |
cancelable Indicates whether or not the event's default action can be cancelled. |
zEventTarget |
target The object that fired the event. |
long |
timeStamp The time that the event occurred in milliseconds since midnight, January 1, 1970. |
String |
type The type of event that was fired (i.e., "click"). |
zDragDropEvent() Creates a new instance of zDragDropEvent . |
void |
initDragDropEvent(String type, boolean cancelable, zEventTarget relatedTarget) Initializes the event's type , cancelable , and
relatedTarget fields to the specified values. |
zEvent
void |
initEvent(String type, boolean cancelable) Initializes the event's type and cancelable fields to
the specified values. |
void |
preventDefault() Prevents the default action for an event (only if the event is cancelable). |
public zEventTarget relatedTarget
When the event is drop
, this is the zDropTarget
that
was dropped.
public zDragDropEvent()
Creates a new instance of zDragDropEvent
.
public void initEvent(String type, boolean cancelable, zEventTarget relatedTarget)
Initializes the event's type
, cancelable
, and
relatedTarget
fields to the specified values.
type
- the type of event that has occurred.cancelable
- whether or not the default action of the event can be cancelled.relatedTarget
- the target related to the event but not the cause of it.