APIdia Launch Partner
Top Description Inners Fields Constructors Methods
jdk.swing.interop

public abstract Class DragSourceContextWrapper

extends Object
Class Inheritance
Imports
java.awt.Cursor, java.awt.dnd.DragGestureEvent, .DragSourceContext, java.awt.dnd.peer.DragSourceContextPeer, java.awt.datatransfer.Transferable, .DataFlavor, java.util.Map, sun.awt.dnd.SunDragSourceContextPeer

This class provides a wrapper over inner DragSourceContextPeerProxy class which extends jdk internal sun.awt.dnd.SunDragSourceContextPeer class and provides APIs to be used by FX swing interop to access and use DragSourceContextPeer APIs.
Since
11

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private DragSourceContextWrapper.DragSourceContextPeerProxy

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static int
convertModifiersToDropAction(int modifiers, int supportedActions)

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

public DragSourceContext
pack-priv DragSourceContextPeer
public abstract void
protected abstract void
setNativeCursor(Cursor c, int cType)

protected abstract void
startDrag(Transferable trans, long[] formats, Map<Long, DataFlavor> formatMap)

public abstract void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

dspback to summary
private DragSourceContextWrapper.DragSourceContextPeerProxy dsp

Constructor Detail

DragSourceContextWrapperback to summary
public DragSourceContextWrapper(DragGestureEvent e)

Method Detail

convertModifiersToDropActionback to summary
public static int convertModifiersToDropAction(int modifiers, int supportedActions)
dragDropFinishedback to summary
public void dragDropFinished(final boolean success, final int operations, final int x, final int y)
getDragSourceContextback to summary
public DragSourceContext getDragSourceContext()
getPeerback to summary
pack-priv DragSourceContextPeer getPeer()
quitSecondaryEventLoopback to summary
public abstract void quitSecondaryEventLoop()
setNativeCursorback to summary
protected abstract void setNativeCursor(Cursor c, int cType)
startDragback to summary
protected abstract void startDrag(Transferable trans, long[] formats, Map<Long, DataFlavor> formatMap)
startSecondaryEventLoopback to summary
public abstract void startSecondaryEventLoop()
jdk.swing.interop back to summary

private Class DragSourceContextWrapper.DragSourceContextPeerProxy

extends SunDragSourceContextPeer
Class Inheritance

Field Summary

Inherited from sun.awt.dnd.SunDragSourceContextPeer:
DISPATCH_CHANGEDDISPATCH_ENTERDISPATCH_EXITDISPATCH_FINISHDISPATCH_MOTIONDISPATCH_MOUSE_MOVED

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
dragDropFinishedCall(final boolean success, final int operations, final int x, final int y)

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

Implements abstract sun.awt.dnd.SunDragSourceContextPeer.setNativeCursor.

downcall into native code

protected void
startDrag(Transferable trans, long[] formats, Map<Long, DataFlavor> formatMap)

Implements abstract sun.awt.dnd.SunDragSourceContextPeer.startDrag.

public void
Inherited from sun.awt.dnd.SunDragSourceContextPeer:
checkDragDropInProgresscheckEventconvertModifiersToDropActiondragDropFinisheddragEnterdragExitgetComponentgetCursorgetDragImagegetDragImageOffsetgetDragSourceContextgetNativeContextgetTriggerisDragDropInProgresspostDragSourceDragEventsetCursorsetDragDropInProgresssetNativeContextsetTriggerstartDragtransferablesFlavorsChanged

Constructor Detail

DragSourceContextPeerProxyback to summary
public DragSourceContextPeerProxy(DragGestureEvent e)

Method Detail

dragDropFinishedCallback to summary
protected void dragDropFinishedCall(final boolean success, final int operations, final int x, final int y)
getDragSourceContextCallback to summary
protected DragSourceContext getDragSourceContextCall()
quitSecondaryEventLoopback to summary
public void quitSecondaryEventLoop()

Overrides sun.awt.dnd.SunDragSourceContextPeer.quitSecondaryEventLoop.

setNativeCursorback to summary
protected void setNativeCursor(long nativeCtxt, Cursor c, int cType)

Implements abstract sun.awt.dnd.SunDragSourceContextPeer.setNativeCursor.

Doc from sun.awt.dnd.SunDragSourceContextPeer.setNativeCursor.

downcall into native code

startDragback to summary
protected void startDrag(Transferable trans, long[] formats, Map<Long, DataFlavor> formatMap)

Implements abstract sun.awt.dnd.SunDragSourceContextPeer.startDrag.

startSecondaryEventLoopback to summary
public void startSecondaryEventLoop()

Overrides sun.awt.dnd.SunDragSourceContextPeer.startSecondaryEventLoop.

Doc from sun.awt.dnd.SunDragSourceContextPeer.startSecondaryEventLoop.

Synchro messages in AWT