public abstract class

SunDragSourceContextPeer

extends Object
implements DragSourceContextPeer
java.lang.Object
   ↳ sun.awt.dnd.SunDragSourceContextPeer

Class Overview

TBC

Summary

Constants
int DISPATCH_CHANGED
int DISPATCH_ENTER
int DISPATCH_EXIT
int DISPATCH_FINISH
int DISPATCH_MOTION
int DISPATCH_MOUSE_MOVED
Public Constructors
SunDragSourceContextPeer(DragGestureEvent dge)
construct a new SunDragSourceContextPeer
Public Methods
static void checkDragDropInProgress()
static boolean checkEvent(AWTEvent event)
Filters out all mouse events that were on the java event queue when startDrag was called.
static int convertModifiersToDropAction(int modifiers, int supportedActions)
Cursor getCursor()
return cursor
void quitSecondaryEventLoop()
void setCursor(Cursor c)
set cursor
static void setDragDropInProgress(boolean b)
void startDrag(DragSourceContext dsc, Cursor c, Image di, Point p)
initiate a DnD operation ...
void startSecondaryEventLoop()
Synchro messages in AWT
void transferablesFlavorsChanged()
Notify the peer that the transferables' DataFlavors have changed.
Protected Methods
final void dragDropFinished(boolean success, int operations, int x, int y)
upcall from native code via implemented class (do)
final void dragExit(int x, int y)
upcall from native code
Component getComponent()
DragSourceContext getDragSourceContext()
synchronized long getNativeContext()
DragGestureEvent getTrigger()
final void postDragSourceDragEvent(int targetAction, int modifiers, int x, int y, int dispatchType)
synchronized void setNativeContext(long ctxt)
abstract void setNativeCursor(long nativeCtxt, Cursor c, int cType)
downcall into native code
synchronized void setTrigger(DragGestureEvent dge)
abstract void startDrag(Transferable trans, long[] formats, Map formatMap)
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.awt.dnd.peer.DragSourceContextPeer

Constants

protected static final int DISPATCH_CHANGED

Constant Value: 3 (0x00000003)

protected static final int DISPATCH_ENTER

Constant Value: 1 (0x00000001)

protected static final int DISPATCH_EXIT

Constant Value: 4 (0x00000004)

protected static final int DISPATCH_FINISH

Constant Value: 5 (0x00000005)

protected static final int DISPATCH_MOTION

Constant Value: 2 (0x00000002)

protected static final int DISPATCH_MOUSE_MOVED

Constant Value: 6 (0x00000006)

Public Constructors

public SunDragSourceContextPeer (DragGestureEvent dge)

construct a new SunDragSourceContextPeer

Public Methods

public static void checkDragDropInProgress ()

public static boolean checkEvent (AWTEvent event)

Filters out all mouse events that were on the java event queue when startDrag was called.

public static int convertModifiersToDropAction (int modifiers, int supportedActions)

public Cursor getCursor ()

return cursor

public void quitSecondaryEventLoop ()

public void setCursor (Cursor c)

set cursor

public static void setDragDropInProgress (boolean b)

public void startDrag (DragSourceContext dsc, Cursor c, Image di, Point p)

initiate a DnD operation ...

public void startSecondaryEventLoop ()

Synchro messages in AWT

public void transferablesFlavorsChanged ()

Notify the peer that the transferables' DataFlavors have changed. No longer useful as the transferables are determined at the time of the drag.

Protected Methods

protected final void dragDropFinished (boolean success, int operations, int x, int y)

upcall from native code via implemented class (do)

protected final void dragExit (int x, int y)

upcall from native code

protected Component getComponent ()

protected DragSourceContext getDragSourceContext ()

protected synchronized long getNativeContext ()

protected DragGestureEvent getTrigger ()

protected final void postDragSourceDragEvent (int targetAction, int modifiers, int x, int y, int dispatchType)

protected synchronized void setNativeContext (long ctxt)

protected abstract void setNativeCursor (long nativeCtxt, Cursor c, int cType)

downcall into native code

protected synchronized void setTrigger (DragGestureEvent dge)

protected abstract void startDrag (Transferable trans, long[] formats, Map formatMap)