class org.aswing.event.DragAndDropEvent extends AWEvent
Class Fields
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:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
getDragInitiator() | the drag initiator component |
getSourceData() | the drag source data |
getMousePosition() | the mouse point in stage scope |
getTargetComponent() | the mouse entered target component |
currentTarget | The 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. |
target | The 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:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
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
|
currentTarget | The 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. |
target | The 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
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:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
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
|
currentTarget | The 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. |
target | The 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:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
getDragInitiator() | the drag initiator component |
getSourceData() | the drag source data |
getMousePosition() | the mouse point in stage scope |
getTargetComponent() | the mouse entered target component |
currentTarget | The 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. |
target | The 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:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
getDragInitiator() | the drag initiator component |
getMousePosition() | the mouse point in stage scope |
currentTarget | The 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. |
target | The 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:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
getDragInitiator() | the drag initiator component |
getSourceData() | the drag source data |
getMousePosition() | the mouse point in stage scope |
currentTarget | The 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. |
target | The 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 fields | Hide inherited public instance fields
|
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 |
| targetComponent | the mouse entered component. |
| relatedTargetComponent | the related target 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.
