Apache Flex (FlexJS) 0.7.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
IDragInitiator

Package | org.apache.flex.core
Interface | public interface IDragInitiator
Implementors | MXMLDragInitiator

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The IDragInitiator interface is the basic interface for the object that wants to know if a drop was accepted in a drag/drop operation. There are two methods instead of the usual one because in some scenarios the drag initiator needs to prepare the data before it gets dropped. For example, in a tree control, dragging from one node to another, the tree should un-parent the node before it is moved to the new parent node, so the tree would un-parent the node in acceptingDrop.

Public Methods

| Method | Defined By
--- | --- | ---
|  | acceptedDrop(dropTarget:Object, type:String):void This method is called to notify the dragInitiator that you have accepted the drop. | IDragInitiator
|  | acceptingDrop(dropTarget:Object, type:String):void This method is called to notify the dragInitiator that you want to accept a drop. | IDragInitiator

Method Detail

acceptedDrop | () | method

`public function acceptedDrop(dropTarget:Object, type:String):void`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

This method is called to notify the dragInitiator that you have accepted the drop.

Parameters

| `dropTarget:Object` — The type of drop accepted. Allowed values are in org.apache.flex.core.DropType.
| `type:String`

acceptingDrop | () | method |

`public function acceptingDrop(dropTarget:Object, type:String):void`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

This method is called to notify the dragInitiator that you want to accept a drop.

Parameters

| `dropTarget:Object` — The type of drop accepted. Allowed values are in org.apache.flex.core.DropType.
| `type:String`

Mon Sep 5 2016, 07:19 AM -07:00