Package com.ms.object.dragdrop
 In this topic

*Methods

*Fields

 

Packages
  PreviousThis PackageNext
Package com.ms.object.dragdrop   Previous This
Package
Next

 


Interface DragSession

public interface DragSession extends TransferSession
{
  // Fields
  public static final int ALT;
  public static final int CONTROL;
  public static final int LBUTTON;
  public static final int MBUTTON;
  public static final int RBUTTON;
  public static final int SHIFT;

  // Methods
  public int getDragModifiers();
}

This interface defines drag modifiers used with drag-and-drop operations. These constants represent the mouse state and keyboard modifiers such as the CTRL, ALT, and SHIFT keys. In most cases, this interface should be implemented by a class that implements the dragdrop protocol.

TransferSession
  |
  +--DragSession

Methods

getDragModifiers

public int getDragModifiers();

Retrieves the drag modifiers for the current drag operation.

Return Value:

Returns any one or a combination of the following modifiers:
LBUTTON, MBUTTON, RBUTTON,
CONTROL, SHIFT, or ALT.

Fields

ALT
A drag modifier indicating that the ALT key is pressed.
CONTROL
A drag modifier indicating that the CTRL key is pressed.
LBUTTON
A drag modifier indicating that the left mouse button is pressed.
MBUTTON
A drag modifier indicating that the middle button of a three-button mouse is pressed.
RBUTTON
A drag modifier indicating that the right mouse button is pressed.
SHIFT
A drag modifier indicating that the SHIFT key is pressed.

upnrm.gif