Apache Flex 4.16.1 API Reference | All Packages | All Classes | Index | Frames No Frames |
DropLocation

Package | spark.layouts.supportClasses
Class | public class DropLocation
Inheritance | DropLocation Object

Language Version : | ActionScript 3.0

Product Version : | Flex 4

Runtime Versions : | Flash Player 10, AIR 1.5

The DropLocation class contains information describing the drop location for the dragged data in a drag-and-drop operation.

The `DropLocation` is created by the `LayoutBase` class when the `List` calls the layout's `calculateDropLocation()` method in response to a `dragOver`.

The DropLocation class is used by the layout for operations such as calculating the drop indicator bounds and drag-scroll deltas.

See also

spark.layouts.supportClasses.LayoutBase.calculateDropLocation()
spark.layouts.supportClasses.LayoutBase.calculateDropIndicatorBounds()

Public Properties

| Property | Defined By
--- | --- | ---
|  | dragEvent : DragEvent = null The DragEvent associated with this location. | DropLocation
|  | dropIndex : int = -1 The drop index corresponding to the event. | DropLocation
|  | dropPoint : Point = null The event point in local coordinates of the layout's target. | DropLocation

Public Methods

| Method | Defined By
--- | --- | ---
|  | DropLocation() Constructor. | DropLocation

Property Detail

dragEvent | property

`public var dragEvent:DragEvent = null`

Language Version : | ActionScript 3.0

Product Version : | Flex 4

Runtime Versions : | Flash Player 10, AIR 1.5

The `DragEvent` associated with this location.

dropIndex | property |

`public var dropIndex:int = -1`

Language Version : | ActionScript 3.0

Product Version : | Flex 4

Runtime Versions : | Flash Player 10, AIR 1.5

The drop index corresponding to the event.

dropPoint | property |

`public var dropPoint:Point = null`

Language Version : | ActionScript 3.0

Product Version : | Flex 4

Runtime Versions : | Flash Player 10, AIR 1.5

The event point in local coordinates of the layout's target.

Constructor Detail

DropLocation | () | Constructor

`public function DropLocation()`

Language Version : | ActionScript 3.0

Product Version : | Flex 4

Runtime Versions : | Flash Player 10, AIR 1.5

Constructor.

Wed Nov 15 2017, 09:50 AM +01:00