class org.aswing.event.DragAndDropEvent extends AWEvent

Class Fields

static var DRAG_DROP:String

The DragAndDropEvent.DRAG_DROP constant defines the value of the type property of the event object for a dragDrop event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
getDragInitiator()the drag initiator component
getSourceData()the drag source data
getMousePosition()the mouse point in stage scope
getTargetComponent()the mouse entered target component
currentTargetThe Object that defines the event listener that handles the event. For example, if you use comp.addEventListener() to register an event listener, comp is the value of the currentTarget.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.

@eventType dragDrop

static var DRAG_ENTER:String

The DragAndDropEvent.DRAG_ENTER constant defines the value of the type property of the event object for a dragEnter event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
getDragInitiator()the drag initiator component
getSourceData()the drag source data
getMousePosition()the mouse point in stage scope
getTargetComponent()the mouse entered target component
getRelatedTargetComponent()the previouse entered

target component</td></tr>

currentTargetThe Object that defines the event listener that handles the event. For example, if you use comp.addEventListener() to register an event listener, comp is the value of the currentTarget.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.

@eventType dragEnter

static var DRAG_EXIT:String

The DragAndDropEvent.DRAG_EXIT constant defines the value of the type property of the event object for a dragExit event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
getDragInitiator()the drag initiator component
getSourceData()the drag source data
getMousePosition()the mouse point in stage scope
getTargetComponent()the mouse entered target component
getRelatedTargetComponent()the next being entered

target component</td></tr>

currentTargetThe Object that defines the event listener that handles the event. For example, if you use comp.addEventListener() to register an event listener, comp is the value of the currentTarget.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.

@eventType dragExit

static var DRAG_OVERRING:String

The DragAndDropEvent.DRAG_OVERRING constant defines the value of the type property of the event object for a dragOverring event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
getDragInitiator()the drag initiator component
getSourceData()the drag source data
getMousePosition()the mouse point in stage scope
getTargetComponent()the mouse entered target component
currentTargetThe Object that defines the event listener that handles the event. For example, if you use comp.addEventListener() to register an event listener, comp is the value of the currentTarget.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.

@eventType dragOverring

static var DRAG_RECOGNIZED:String

The DragAndDropEvent.DRAG_RECOGNIZED constant defines the value of the type property of the event object for a dragRecongnized event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
getDragInitiator()the drag initiator component
getMousePosition()the mouse point in stage scope
currentTargetThe Object that defines the event listener that handles the event. For example, if you use comp.addEventListener() to register an event listener, comp is the value of the currentTarget.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.

@eventType dragRecongnized

static var DRAG_START:String

The DragAndDropEvent.DRAG_START constant defines the value of the type property of the event object for a dragStart event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
getDragInitiator()the drag initiator component
getSourceData()the drag source data
getMousePosition()the mouse point in stage scope
currentTargetThe Object that defines the event listener that handles the event. For example, if you use comp.addEventListener() to register an event listener, comp is the value of the currentTarget.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.

@eventType dragStart

Instance Fields

Show inherited public instance fieldsHide inherited public instance fields

Inherited from AWEvent

function clone():Event

Inherited from Event

var bubbles:Bool
var cancelable:Bool
var currentTarget:Dynamic
var eventPhase:EventPhase
var target:Dynamic
var type:String
function clone():Event
function formatToString(className:String, ?p1:Dynamic, ?p2:Dynamic, ?p3:Dynamic, ?p4:Dynamic, ?p5:Dynamic):String
function isDefaultPrevented():Bool
function preventDefault():Void
function stopImmediatePropagation():Void
function stopPropagation():Void
function toString():String

function new(type:String, dragInitiator:Component, sourceData:SourceData, mousePos:IntPoint, ?targetComponent:Component = null, ?relatedTargetComponent:Component = null): Void

Create a drag and drop event.

type

the type.

dragInitiator

the drag initiator component.

dragSource

the data source.

mousePos

a IntPoint indicating the cursor location in global space.

targetComponent

the mouse entered component.

relatedTargetComponent

the related target component.

function clone(): Event

function getDragInitiator(): Component

Returns the drag initiator component.

function getMousePosition(): IntPoint

Returns a IntPoint indicating the cursor location in global space.

function getRelatedTargetComponent(): Component

Returns the related mouse entered component. For DRAGENTER event, it is the previous target component, for DRAGEXIT it is the next being entered target component.

For DRAGSTART, DRAGRECOGNIZED, DRAGOVERRING, DRAGDROP events this property is always null.

function getSourceData(): SourceData

Returns the data source.

For DRAG_RECOGNIZED events this property is null.

function getTargetComponent(): Component

Returns the mouse entered component.

For DRAGSTART and DRAGRECOGNIZED events this property is always null.