nsIDragService

IID:8B5314BB-DB01-11d2-96CE-0060B0FB9956
Inherits From:nsISupports

This interface is intended to be used as a service. To create an object implementing this interface:

var obj = Components.classes["@mozilla.org/widget/dragservice;1"].
            getService(Components.interfaces.nsIDragService);

This interface is implemented by the following components:


Constants

PRInt32 DRAGDROP_ACTION_NONE = 0
PRInt32 DRAGDROP_ACTION_COPY = 1
PRInt32 DRAGDROP_ACTION_MOVE = 2
PRInt32 DRAGDROP_ACTION_LINK = 4

Methods

void endDragSession ( ) nsIDragSession getCurrentSession ( ) void invokeDragSession ( nsIDOMNode DOMNode , nsISupportsArray transferables , nsIScriptableRegion region , PRUint32 actionType ) void startDragSession ( )

void endDragSession ( )

Tells the Drag Service to end a drag session. This is called when an external drag occurs


nsIDragSession getCurrentSession ( )

Returns the current Drag Session


void invokeDragSession ( nsIDOMNode DOMNode , nsISupportsArray transferables , nsIScriptableRegion region , PRUint32 actionType )

Starts a modal drag session with an array of transaferables

Arguments:
DOMNode
transferables: - an array of transferables to be dragged
region: - a region containing rectangles for cursor feedback, in window coordinates.
actionType: - specified which of copy/move/link are allowed

void startDragSession ( )

Tells the Drag Service to start a drag session. This is called when an external drag occurs

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com