@mozilla.org/widget/dragservice;1

This component implements the following interfaces:

Constants

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

Properties

PRBool nsIDragSession.canDrop

Set the current state of the drag whether it can be dropped or not. usually the target "frame" sets this so the native system can render the correct feedback

PRUint32 nsIDragSession.dragAction

Sets the action (copy, move, link, et.c) for the current drag

readonly PRUint32 nsIDragSession.numDropItems

Get the number items that were dropped

readonly nsIDOMDocument nsIDragSession.sourceDocument

The document where the drag was started, which will be null if the drag originated outside the application. Useful for determining if a drop originated in the same document.

readonly nsIDOMNode nsIDragSession.sourceNode

The dom node that was originally dragged to start the session, which will be null if the drag originated outside the application.

[noscript] nsSize nsIDragSession.targetSize

Sets the current width and height if the drag target area. It will contain the current size of the Frame that the drag is currently in

Methods

InterfaceMethod
nsIDragService void endDragSession ( )
nsIDragService nsIDragSession getCurrentSession ( )
nsIDragSession void getData ( nsITransferable transferable , PRUint32 itemIndex )
nsIDragService void invokeDragSession ( nsIDOMNode DOMNode , nsISupportsArray transferables , nsIScriptableRegion region , PRUint32 actionType )
nsIDragSession PRBool isDataFlavorSupported ( char* dataFlavor )
nsIDragService void startDragSession ( )

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com