The goog.ui.DragDropDetector.ImageDropEvent Class

goog.ui.DragDropDetector.ImageDropEvent
> goog.events.Event

goog.ui.DragDropDetector.ImageDropEvent(url, position)

Creates a new image drop event object.

url {string}
The url of the dropped image.
position {goog.math.Coordinate}
The screen position where the drop occurred.

.defaultPrevented {boolean}

Inherited from goog.events.Event .

Whether the default action has been prevented. This is a property to match the W3C specification at {@link http://www.w3.org/TR/DOM-Level-3-Events/#events-event-type-defaultPrevented}. Must be treated as read-only outside the class.

.getPosition()

returns {goog.math.Coordinate}
The screen position where the drop occurred. This may be have x and y of goog.ui.DragDropDetector.INIT_POSITION, indicating the drop position is unknown.

.getUrl()

returns {string}
The url of the image that was dropped.

.preventDefault()

Inherited from goog.events.Event .

Prevents the default action, for example a link redirecting to a url.

.propagationStopped_ {boolean}

Inherited from goog.events.Event .

Whether to cancel the event in internal capture/bubble processing for IE.

@suppress
{underscore} Technically public, but referencing this outside this package is strongly discouraged.

.returnValue_ {boolean}

Inherited from goog.events.Event .

Return value for in internal capture/bubble processing for IE.

@suppress
{underscore} Technically public, but referencing this outside this package is strongly discouraged.

.stopPropagation()

Inherited from goog.events.Event .

Stops event propagation.