Class zDragDropEvent

Description

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.

Author:

Nicholas C. Zakas, http://www.nczonline.net/

Version:

1.0

Since:

1.0

Field Summary

zEventTarget relatedTarget
An object related to the event but not the cause of it.

Fields Inherited From 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").

Constructor Summary

zDragDropEvent()
Creates a new instance of zDragDropEvent.

Method Summary

void initDragDropEvent(String type, boolean cancelable, zEventTarget relatedTarget)
Initializes the event's type, cancelable, and relatedTarget fields to the specified values.

Methods Inherited From 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).

Field Detail

relatedTarget

public zEventTarget relatedTarget

When the event is drop, this is the zDropTarget that was dropped.

Constructor Detail

zDragDropEvent

public zDragDropEvent()

Creates a new instance of zDragDropEvent.

Method Detail

initDragDropEvent

public void initEvent(String type, boolean cancelable, zEventTarget relatedTarget)

Initializes the event's type, cancelable, and relatedTarget fields to the specified values.

Arguments: