Microsoft SDK for Java

beginDrag

The beginDrag method of the WDragSession Class contains the following signatures:

beginDrag(TransferSession session)
beginDrag(MetaObject data, int available)
beginDrag(MetaObject data, int available, int preferred)
beginDrag(DragSource source, MetaObject data, int available)
beginDrag(DragSource source, MetaObject data, int available, int preferred)
beginDrag(DragSource source, TransferSession session)

beginDrag(TransferSession session)

Starts a drag session by obtaining a TransferSession object and acting on it. The drag session has an undefined DragSource object. Drag-and-drop TransferSession implementations must support Transfer.MOVE.

Syntax

public static void beginDrag(TransferSession session);

Parameters

session The TransferSession object that is used during the current drag operation.

beginDrag(MetaObject data, int available)

Starts a drag session by obtaining a TransferSession object and acting on it.

Syntax

public static void beginDrag(MetaObject data, int available);

The drag session has an undefined DragSource object. Drag-and-drop TransferSession implementations must support Transfer.MOVE.

Parameters

data A MetaObject used to create a TransferSession object. It is used in the current drag session.
available The transfer effects that are available for the created TransferSession. These include NONE, COPY, MOVE, and LINK.

beginDrag(MetaObject data, int available, int preferred)

Starts a drag session by obtaining a TransferSession object and acting on it.

Syntax

public static void beginDrag(MetaObject data, int available, int preferred);

The drag session has an undefined DragSource object. Drag-and-drop TransferSession implementations must support Transfer.MOVE.

Parameters

data A MetaObject used to create a TransferSession object. It is used in the current drag session.
available The transfer effects that are available for the created TransferSession. These include NONE, COPY, MOVE, and LINK.
preferred The preferred transfer effects for the current TransferSession.

beginDrag(DragSource source, MetaObject data, int available)

Starts a drag session by obtaining a TransferSession object and acting on it.

Syntax

public static void beginDrag(DragSource source, MetaObject data, int available);

Drag-and-drop TransferSession implementations must support Transfer.MOVE.

Parameters

source A DragSource object that provides custom cursor behavior for the drag session.
data A MetaObject used to create a TransferSession object. It is used in the current drag session.
available The transfer effects that are available for the created TransferSession. These include NONE, COPY, MOVE, and LINK.

beginDrag(DragSource source, MetaObject data, int available, int preferred)

Starts a drag session by obtaining a TransferSession object and acting on it.

Syntax

public static void beginDrag(DragSource source, MetaObject data, int available, int preferred);

Drag-and-drop TransferSession implementations must support Transfer.MOVE.

Parameters

source A DragSource object that provides custom cursor behavior for the drag session.
data A MetaObject used to create a TransferSession object. It is used in the current drag session.
available The transfer effects that are available for the created TransferSession. These include NONE, COPY, MOVE, and LINK.
preferred The preferred transfer effects for the current TransferSession.

beginDrag(DragSource source, TransferSession session)

Starts a drag session by obtaining a TransferSession object and acting on it.

Syntax

public static void beginDrag(DragSource source, TransferSession session);

Drag-and-drop TransferSession implementations must support Transfer.MOVE.

Parameters

source A DragSource object that provides custom cursor behavior for the drag session.
session The TransferSession object that is used during the current drag operation.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.