Top Inners Fields Constructors Methods
com.sun.javafx.embed.swing.newimpl

public Class FXDnDInteropN

extends Object
Class Inheritance
Imports
com.sun.javafx.embed.swing.CachingTransferable, .FXDnD, .SwingDnD, .SwingEvents, .SwingNodeHelper, com.sun.javafx.tk.Toolkit, java.awt.Component, .Cursor, .Point, .SecondaryLoop, java.awt.datatransfer.DataFlavor, .Transferable, java.awt.dnd.DnDConstants, .DragGestureEvent, .DragGestureListener, .DragGestureRecognizer, .DragSource, .DropTarget, .DropTargetContext, .DropTargetDragEvent, .DropTargetDropEvent, .DropTargetListener, .InvalidDnDOperationException, .MouseDragGestureRecognizer, java.lang.ref.WeakReference, java.util.HashMap, .Map, javafx.application.Platform, javafx.embed.swing.SwingNode, javafx.event.EventHandler, .EventType, javafx.scene.input.DataFormat, .DragEvent, .Dragboard, .MouseEvent, .TransferMode, jdk.swing.interop.DragSourceContextWrapper, .DropTargetContextWrapper, .LightweightFrameWrapper

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class
FXDnDInteropN.ComponentMapper<T>

Utility class that operates on Maps with Components as keys.

private class
private class
private class

Field Summary

Modifier and TypeField and Description
private volatile FXDnDInteropN.FXDragSourceContextPeer
private volatile FXDnDInteropN.FXDropTargetContextPeer
private final Map<Component, DropTarget>
private boolean
private boolean
private volatile SecondaryLoop
private WeakReference<SwingNode>
private final EventHandler<DragEvent>
private final EventHandler<DragEvent>
private final EventHandler<DragEvent>
private final EventHandler<DragEvent>
private final EventHandler<DragEvent>
private final EventHandler<MouseEvent>
private final EventHandler<MouseEvent>
private MouseEvent
private long
private final Map<Component, FXDnDInteropN.FXDragGestureRecognizer>

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

public <T extends DragGestureRecognizer> T
public Object
public Component
findComponentAt(Object frame, int x, int y, boolean ignoreEnabled)

private void
fireEvent(int x, int y, long evTime, int modifiers)

private MouseEvent
public SwingNode
public boolean
public <T> FXDnDInteropN.ComponentMapper<T>
mapComponent(Map<Component, T> map, int x, int y)

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

Field Detail

activeDSContextPeerback to summary
private volatile FXDnDInteropN.FXDragSourceContextPeer activeDSContextPeer
activeDTContextPeerback to summary
private volatile FXDnDInteropN.FXDropTargetContextPeer activeDTContextPeer
dropTargetsback to summary
private final Map<Component, DropTarget> dropTargets
isDragSourceListenerInstalledback to summary
private boolean isDragSourceListenerInstalled
isDropTargetListenerInstalledback to summary
private boolean isDropTargetListenerInstalled
loopback to summary
private volatile SecondaryLoop loop
nodeRefback to summary
private WeakReference<SwingNode> nodeRef
onDragDoneHandlerback to summary
private final EventHandler<DragEvent> onDragDoneHandler
onDragDroppedHandlerback to summary
private final EventHandler<DragEvent> onDragDroppedHandler
onDragEnteredHandlerback to summary
private final EventHandler<DragEvent> onDragEnteredHandler
onDragExitedHandlerback to summary
private final EventHandler<DragEvent> onDragExitedHandler
onDragOverHandlerback to summary
private final EventHandler<DragEvent> onDragOverHandler
onDragStartHandlerback to summary
private final EventHandler<MouseEvent> onDragStartHandler
onMousePressHandlerback to summary
private final EventHandler<MouseEvent> onMousePressHandler
pressEventback to summary
private MouseEvent pressEvent
pressTimeback to summary
private long pressTime
recognizersback to summary
private final Map<Component, FXDnDInteropN.FXDragGestureRecognizer> recognizers

Constructor Detail

FXDnDInteropNback to summary
public FXDnDInteropN()

Method Detail

addDropTargetback to summary
public void addDropTarget(DropTarget dt, SwingNode node)
convertModifiersToDropActionback to summary
public int convertModifiersToDropAction(int modifiers, int supportedActions)
createDragGestureRecognizerback to summary
public <T extends DragGestureRecognizer> T createDragGestureRecognizer(DragSource ds, Component c, int srcActions, DragGestureListener dgl)
createDragSourceContextback to summary
public Object createDragSourceContext(DragGestureEvent dge) throws InvalidDnDOperationException
findComponentAtback to summary
public Component findComponentAt(Object frame, int x, int y, boolean ignoreEnabled)
fireEventback to summary
private void fireEvent(int x, int y, long evTime, int modifiers)
getInitialGestureEventback to summary
private MouseEvent getInitialGestureEvent()
getNodeback to summary
public SwingNode getNode()
isCompEqualback to summary
public boolean isCompEqual(Component c, Object frame)
mapComponentback to summary
public <T> FXDnDInteropN.ComponentMapper<T> mapComponent(Map<Component, T> map, int x, int y)
removeDropTargetback to summary
public void removeDropTarget(DropTarget dt, SwingNode node)
runOnFxThreadback to summary
private void runOnFxThread(Runnable runnable)
setNodeback to summary
public void setNode(SwingNode swnode)
com.sun.javafx.embed.swing.newimpl back to summary

private Class FXDnDInteropN.ComponentMapper<T>

extends Object
Class Inheritance
  • java.lang.Object
  • com.sun.javafx.embed.swing.newimpl.FXDnDInteropN.ComponentMapper

Utility class that operates on Maps with Components as keys. Useful when processing mouse events to choose an object from the map based on the component located at the given coordinates.

Field Summary

Modifier and TypeField and Description
public T
public int
x

public int
y

Constructor Summary

AccessConstructor and Description
private
ComponentMapper(Map<Component, T> map, int xArg, int yArg)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

objectback to summary
public T object
xback to summary
public int x
yback to summary
public int y

Constructor Detail

ComponentMapperback to summary
private ComponentMapper(Map<Component, T> map, int xArg, int yArg)
com.sun.javafx.embed.swing.newimpl back to summary

private Class FXDnDInteropN.FXDragGestureRecognizer

extends MouseDragGestureRecognizer
Class Inheritance

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private void
fireEvent(int x, int y, long evTime, int modifiers)

protected void
registerListeners()

Overrides java.awt.dnd.MouseDragGestureRecognizer.registerListeners.

register this DragGestureRecognizer's Listeners with the Component

public synchronized void
setComponent(Component c)

Overrides java.awt.dnd.DragGestureRecognizer.setComponent.

set the Component that the DragGestureRecognizer is associated with registerListeners() and unregisterListeners() are called as a side effect as appropriate.

protected void
unregisterListeners()

Overrides java.awt.dnd.MouseDragGestureRecognizer.unregisterListeners.

unregister this DragGestureRecognizer's Listeners with the Component subclasses must override this method

Inherited from java.awt.dnd.MouseDragGestureRecognizer:
mouseClickedmouseDraggedmouseEnteredmouseExitedmouseMovedmousePressedmouseReleased

Constructor Detail

FXDragGestureRecognizerback to summary
pack-priv FXDragGestureRecognizer(DragSource ds, Component c, int srcActions, DragGestureListener dgl)

Method Detail

fireEventback to summary
private void fireEvent(int x, int y, long evTime, int modifiers)
registerListenersback to summary
protected void registerListeners()

Overrides java.awt.dnd.MouseDragGestureRecognizer.registerListeners.

Doc from java.awt.dnd.MouseDragGestureRecognizer.registerListeners.

register this DragGestureRecognizer's Listeners with the Component

Annotations
@Override
setComponentback to summary
public synchronized void setComponent(Component c)

Overrides java.awt.dnd.DragGestureRecognizer.setComponent.

Doc from java.awt.dnd.DragGestureRecognizer.setComponent.

set the Component that the DragGestureRecognizer is associated with registerListeners() and unregisterListeners() are called as a side effect as appropriate.

Annotations
@Override
unregisterListenersback to summary
protected void unregisterListeners()

Overrides java.awt.dnd.MouseDragGestureRecognizer.unregisterListeners.

Doc from java.awt.dnd.MouseDragGestureRecognizer.unregisterListeners.

unregister this DragGestureRecognizer's Listeners with the Component subclasses must override this method

Annotations
@Override
com.sun.javafx.embed.swing.newimpl back to summary

private final Class FXDnDInteropN.FXDragSourceContextPeer

extends DragSourceContextWrapper
Class Inheritance

Field Summary

Modifier and TypeField and Description
private volatile int
private final CachingTransferable

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private void
dragDone(int operation, int x, int y)

public void
protected void
protected void
startDrag(Transferable trans, long[] formats, Map<K, V> formatMap)

Implements abstract jdk.swing.interop.DragSourceContextWrapper.startDrag.

public void
Inherited from jdk.swing.interop.DragSourceContextWrapper:
convertModifiersToDropActiondragDropFinishedgetDragSourceContext

Field Detail

sourceActionsback to summary
private volatile int sourceActions
transferableback to summary
private final CachingTransferable transferable

Constructor Detail

FXDragSourceContextPeerback to summary
pack-priv FXDragSourceContextPeer(DragGestureEvent dge)

Method Detail

dragDoneback to summary
private void dragDone(int operation, int x, int y)
quitSecondaryEventLoopback to summary
public void quitSecondaryEventLoop()

Implements abstract jdk.swing.interop.DragSourceContextWrapper.quitSecondaryEventLoop.

Annotations
@Override
setNativeCursorback to summary
protected void setNativeCursor(Cursor c, int cType)

Implements abstract jdk.swing.interop.DragSourceContextWrapper.setNativeCursor.

Annotations
@Override
startDragback to summary
protected void startDrag(Transferable trans, long[] formats, Map<K, V> formatMap)

Implements abstract jdk.swing.interop.DragSourceContextWrapper.startDrag.

Annotations
@Override
startSecondaryEventLoopback to summary
public void startSecondaryEventLoop()

Implements abstract jdk.swing.interop.DragSourceContextWrapper.startSecondaryEventLoop.

Annotations
@Override
com.sun.javafx.embed.swing.newimpl back to summary

private final Class FXDnDInteropN.FXDropTargetContextPeer

extends DropTargetContextWrapper
Class Inheritance

Field Summary

Modifier and TypeField and Description
private DropTargetContext
private int
private int
private DropTarget
private boolean
private int
private final CachingTransferable

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public synchronized void
public synchronized void
public synchronized void
public synchronized DropTarget
public synchronized int
public synchronized Transferable
public synchronized DataFlavor[]
public synchronized boolean
private int
public synchronized void
public synchronized void
public synchronized void
Inherited from jdk.swing.interop.DropTargetContextWrapper:
resetsetDropTargetContext

Field Detail

ctxback to summary
private DropTargetContext ctx
currentActionback to summary
private int currentAction
dropActionback to summary
private int dropAction
dtback to summary
private DropTarget dt
successback to summary
private boolean success
targetActionsback to summary
private int targetActions
transferableback to summary
private final CachingTransferable transferable

Constructor Detail

FXDropTargetContextPeerback to summary
private FXDropTargetContextPeer()

Method Detail

acceptDragback to summary
public synchronized void acceptDrag(int dragAction)

Implements abstract jdk.swing.interop.DropTargetContextWrapper.acceptDrag.

Annotations
@Override
acceptDropback to summary
public synchronized void acceptDrop(int dropAction)

Implements abstract jdk.swing.interop.DropTargetContextWrapper.acceptDrop.

Annotations
@Override
dropCompleteback to summary
public synchronized void dropComplete(boolean success)

Implements abstract jdk.swing.interop.DropTargetContextWrapper.dropComplete.

Annotations
@Override
getDropTargetback to summary
public synchronized DropTarget getDropTarget()

Implements abstract jdk.swing.interop.DropTargetContextWrapper.getDropTarget.

Annotations
@Override
getTargetActionsback to summary
public synchronized int getTargetActions()

Implements abstract jdk.swing.interop.DropTargetContextWrapper.getTargetActions.

Annotations
@Override
getTransferableback to summary
public synchronized Transferable getTransferable()

Implements abstract jdk.swing.interop.DropTargetContextWrapper.getTransferable.

Annotations
@Override
getTransferDataFlavorsback to summary
public synchronized DataFlavor[] getTransferDataFlavors()

Implements abstract jdk.swing.interop.DropTargetContextWrapper.getTransferDataFlavors.

Annotations
@Override
isTransferableJVMLocalback to summary
public synchronized boolean isTransferableJVMLocal()

Implements abstract jdk.swing.interop.DropTargetContextWrapper.isTransferableJVMLocal.

Annotations
@Override
postDropTargetEventback to summary
private int postDropTargetEvent(DragEvent event)
rejectDragback to summary
public synchronized void rejectDrag()

Implements abstract jdk.swing.interop.DropTargetContextWrapper.rejectDrag.

Annotations
@Override
rejectDropback to summary
public synchronized void rejectDrop()

Implements abstract jdk.swing.interop.DropTargetContextWrapper.rejectDrop.

Annotations
@Override
setTargetActionsback to summary
public synchronized void setTargetActions(int actions)

Implements abstract jdk.swing.interop.DropTargetContextWrapper.setTargetActions.

Annotations
@Override