# com.bea.ide.core.datatransfer
IDragDropContext Interface

public interface IDragDropContext

## Method Summary

`public int` | `getAction`() Gets the current action this drop operation will perform.
`public `Component`` | `getComponent`() Component receiving the drop
`public `DataFlavor`[]` | `getDataFlavors`() Method to obtain data flavors for this drag/drop operation.
`public `Point`` | `getLocation`() Location that the drop context is currently at, in component coordinates
`public int` | `getSourceActions`() Returns a bit-mask indicating the actions supported by the source of the drag operation.
`public `Transferable`` | `getTransferable`() Transferable for the drop.
`public boolean` | `isDataFlavorSupported`(`DataFlavor` df) Method to discover if the given data flavor is supported for this drag drop operation

## Method Detail

### getAction() Method

    public int getAction()

Gets the current action this drop operation will perform. This is one of the DnDConstant values. Initially it is set based on the modifier keys used during the drag and based on the drag source's supported transfer modes. The drop target may also alter the action by returning an alternate action from the ITransferDriver.drag method

#### Returns

one of DnDConstants.ACTION_MOVE, DnDConstants.ACTION_COPY or DnDConstants.ACTION_LINK

### getComponent() Method

    public Component getComponent()

Component receiving the drop

#### Returns

component receiving the drop

### getDataFlavors() Method

    public DataFlavor[] getDataFlavors()

Method to obtain data flavors for this drag/drop operation.

#### Returns

Array of data flavors supported by the transferable of this operation

### getLocation() Method

    public Point getLocation()

Location that the drop context is currently at, in component coordinates

#### Returns

point that the mouse is at in the drop operation

### getSourceActions() Method

    public int getSourceActions()

Returns a bit-mask indicating the actions supported by the source of the drag operation.

#### Returns

Bit-mask of DnDConstant Action operations

### getTransferable() Method

    public Transferable getTransferable()

Transferable for the drop. This method may return null during drag calls, in particular for drags initiated outside the app, or by other components that do not use the DataTransferSvc

#### Returns

Transferable associated with this drop or null if the transferable is not yet available

### isDataFlavorSupported(DataFlavor) Method

    public boolean isDataFlavorSupported(DataFlavor df)

Method to discover if the given data flavor is supported for this drag drop operation

#### Returns

true if the transferable being transferred supports the given data flavor, false otherwise