Uses of Class
java.awt.dnd.DragSourceContext
-
Packages that use DragSourceContext Package Description java.awt.dnd Drag and Drop is a direct manipulation gesture found in many Graphical User Interface systems that provides a mechanism to transfer information between two entities logically associated with presentation elements in the GUI. -
-
Uses of DragSourceContext in java.awt.dnd
Methods in java.awt.dnd that return DragSourceContext Modifier and Type Method and Description protected DragSourceContext
DragSource. createDragSourceContext(java.awt.dnd.peer.DragSourceContextPeer dscp, DragGestureEvent dgl, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable t, DragSourceListener dsl)
Creates theDragSourceContext
to handle the current drag operation.DragSourceContext
DragSourceEvent. getDragSourceContext()
This method returns theDragSourceContext
that originated the event.Constructors in java.awt.dnd with parameters of type DragSourceContext Constructor and Description DragSourceDragEvent(DragSourceContext dsc, int dropAction, int action, int modifiers)
Constructs aDragSourceDragEvent
.DragSourceDragEvent(DragSourceContext dsc, int dropAction, int action, int modifiers, int x, int y)
Constructs aDragSourceDragEvent
given the specifiedDragSourceContext
, user drop action, target drop action, modifiers and coordinates.DragSourceDropEvent(DragSourceContext dsc)
Construct aDragSourceDropEvent
for a drag that does not result in a drop.DragSourceDropEvent(DragSourceContext dsc, int action, boolean success)
Construct aDragSourceDropEvent
for a drop, given theDragSourceContext
, the drop action, and aboolean
indicating if the drop was successful.DragSourceDropEvent(DragSourceContext dsc, int action, boolean success, int x, int y)
Construct aDragSourceDropEvent
for a drop, given theDragSourceContext
, the drop action, aboolean
indicating if the drop was successful, and coordinates.DragSourceEvent(DragSourceContext dsc)
Construct aDragSourceEvent
given a specifiedDragSourceContext
.DragSourceEvent(DragSourceContext dsc, int x, int y)
Construct aDragSourceEvent
given a specifiedDragSourceContext
, and coordinates of the cursor location.
-
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2022, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.