fx.DragDropEvent Extends goog.events.Event
Object representing a drag and drop event.

Inheritance

Constructor

goog.fx.DragDropEvent(typesourcesourceItemopt_targetopt_targetItemopt_targetElementopt_clientXopt_clientYopt_xopt_yopt_subtarget)

Parameters

type : string
Event type.
source : goog.fx.AbstractDragDrop
Source drag drop object.
sourceItem : goog.fx.DragDropItem
Source item.
opt_target : goog.fx.AbstractDragDrop=
Target drag drop object.
opt_targetItem : goog.fx.DragDropItem=
Target item.
opt_targetElement : Element=
Target element.
opt_clientX : number=
X-Position relative to the screen.
opt_clientY : number=
Y-Position relative to the screen.
opt_x : number=
X-Position relative to the viewport.
opt_y : number=
Y-Position relative to the viewport.
opt_subtarget : Object=
The currently active subtarget.

Instance Methods

Public Protected Private
disposeInternal()
No description.
code »
dispose()
Events don't need to be disposed. For backwards compatibility (goog.events.Event used to inherit goog.Disposable).
code »
disposeInternal()
Events don't need to be disposed. For backwards compatibility (goog.events.Event used to inherit goog.Disposable).
code »
preventDefault()
Prevents the default action, for example a link redirecting to a url.
code »
stopPropagation()
Stops event propagation.
code »

Instance Properties

clientX :
X-Position relative to the screen.
Code »
clientY :
Y-Position relative to the screen.
Code »
constructor :
No description.
Code »
Reference to the source goog.fx.AbstractDragDrop object.
Code »
dragSourceItem : goog.fx.DragDropItem
Reference to the source goog.fx.DragDropItem object.
Code »
Reference to the target goog.fx.AbstractDragDrop object.
Code »
dropTargetElement :
The actual element of the drop target that is the target for this event.
Code »
dropTargetItem : goog.fx.DragDropItem
Reference to the target goog.fx.DragDropItem object.
Code »
subtarget :
The subtarget that is currently active if a subtargeting function is supplied.
Code »
viewportX :
X-Position relative to the viewport.
Code »
viewportY :
Y-Position relative to the viewport.
Code »
currentTarget :
Object that had the listener attached.
Code »
defaultPrevented :
Whether the default action has been prevented. This is a property to match the W3C specification at http://www.w3.org/TR/DOM-Level-3-Events/ #events-event-type-defaultPrevented. Must be treated as read-only outside the class.
Code »
propagationStopped_ :
Whether to cancel the event in internal capture/bubble processing for IE.
Code »
returnValue_ :
Return value for in internal capture/bubble processing for IE.
Code »
target :
Target of the event.
Code »
type :
Event type.
Code »

Static Properties

goog.fx.DragDropEvent.superClass_ :
No description.
Code »

Package fx

Package Reference