# com.bea.ide.core.datatransfer
DataTransferSvc.I Interface

public static interface DataTransferSvc.I

Enclosing class
  `DataTransferSvc`

## Method Summary

`public `IActionProxy`` | `getCopyAction`() Returns the action associated with clipboard copy
`public `Transferable`` | `getCurrentTransferable`() Get the current transferable.
`public `IActionProxy`` | `getCutAction`() Returns the action associated with clipboard cut
`public `IActionProxy`` | `getPasteAction`() Returns the action associated with clipboard paste
`public void` | `registerDnDSupport`(`Component` comp, `IDragDropDriver` td, int dndActions, boolean showDragImage) Register your component for drag and drop support.

## Method Detail

### getCopyAction() Method

    public IActionProxy getCopyAction()

Returns the action associated with clipboard copy

### getCurrentTransferable() Method

    public Transferable getCurrentTransferable()

Get the current transferable. Swing's Drag and Drop API doesn't allow access to the transferable. This method can be called during a drag. If the drop was initiated by an IDE component using the DataTransferSvc, the transferable will be available here. This is intended for use by Swing drop listeners. IDragDropDriver implementors can get the transferable off of the drag event.

#### Returns

Transferable being dragged or null if the there is no drag/drop in progress, or the drag/drop in progress was not initiated using the DataTransferSvc.

### getCutAction() Method

    public IActionProxy getCutAction()

Returns the action associated with clipboard cut

### getPasteAction() Method

    public IActionProxy getPasteAction()

Returns the action associated with clipboard paste

### registerDnDSupport(Component, IDragDropDriver, int, boolean) Method

    public void registerDnDSupport(Component comp,
                                   IDragDropDriver td,
                                   int dndActions,
                                   boolean showDragImage)

Register your component for drag and drop support.

#### Parameters

comp
  Component that wants to participate in drag and drop

td
  Drag and Drop driver that implements specific drag and drop support for the component

dndActions
  set of actions that this component can support as a source

showDragImage
  Indicates if a ghosted drag image should drawn near the cursor when dragging occurs over the drop target.