Drag[en]gine Script Module DragonScript Script API 1.0
|Begin drag and drop operation. More...|
|void||dropDone (bool success)|
|Drop has been processed. More...|
|bool||endDrag (bool abord)|
|End drag and drop operation. More...|
|Drop action is valid on the target. More...|
|List of supported data types by the drag source. More...|
|Object||getDragDataAs (String type)|
|Drag data in a specific format or null if not supported. More...|
|Drag source. More...|
|Current target. More...|
|void||mouseMove (MouseEvent event)|
|Process mouse move event. More...|
|DefaultDragAndDrop||new (Widget source)|
|Create default drag and drop. More...|
|void||setCanDrop (bool canDrop)|
|Set if dropping is possible at the current location. More...|
|void||setDataTypes (DNDTypeList list)|
|Set list of supported data types. More...|
|bool||supportsDataType (String type)|
|Drag source supports a type. More...|
Default implementation of DragAndDrop.
Provides support to conduct conveniently drag and drop operations. Use beginDrag to start a drag and drop operation. This grabs the mouse and keyboard on the widget used during creation time. Use mouseEvent in response to mouse move events to send the right messages to the drop widgets. This class takes care of tracking the hover widget and sending the proper events. You just have to call mouseEvent for this to work. During this call the target can alter the can drop status therefore you should check with getCanDrop after mouseEvent to adjust your look. Once you are ready to drop use endDrag. If the parameter is true the drop target is notified about the drag operation completion and carries out the appropriate action. If the operation ended successfully true is returned otherwise false. Therefore if you need to alter your own state in response to a drop action do this if the return value is true. This method also ungrabs the source widget.
Begin drag and drop operation.
Drop has been processed.
The drag and drop operation is finished after this call.
End drag and drop operation.
Drop action is valid on the target.
List of supported data types by the drag source.
Drag data in a specific format or null if not supported.
Process mouse move event.
Set if dropping is possible at the current location.
Set list of supported data types.
Drag source supports a type.