0% found this document useful (0 votes)
308 views1 page

Java Awt DND Dragsource

The document describes the DragSource class and related classes in Java's drag and drop API. It lists methods for creating drag sources, registering listeners, and starting drag operations. It also describes common events and contexts used for drag and drop.

Uploaded by

Keyur Golani
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
308 views1 page

Java Awt DND Dragsource

The document describes the DragSource class and related classes in Java's drag and drop API. It lists methods for creating drag sources, registering listeners, and starting drag operations. It also describes common events and contexts used for drag and drop.

Uploaded by

Keyur Golani
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

java.awt.dnd.

* DragSource
Methods declared in supertypes are hidden in subtypes

DragSourceDragEvent
DragSourceDragEvent (DragSourceContext dsc, int dropAction, int actions, int modifiers) DragSourceDragEvent (DragSourceContext dsc, int dropAction, int actions, int modifiers, int x, int y) int int int int int getDropAction () getGestureModifiers () getGestureModifiersEx () getTargetActions () getUserAction ()

Serializable
java.util.

EventObject

DragSourceEvent
DragSourceEvent (DragSourceContext dsc) DragSourceEvent (DragSourceContext dsc, int x, int y) DragSourceContext Point int int getDragSourceContext () getLocation () getX () getY ()

DragSourceDropEvent
DragSourceDropEvent (DragSourceContext dsc) DragSourceDropEvent (DragSourceContext dsc, int action, boolean success) DragSourceDropEvent (DragSourceContext dsc, int action, boolean success, int x, int y) int getDropAction () boolean getDropSuccess ()

DragSourceContext
DragSourceContext (DragSourceContextPeer dscp, DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point offset, Transferable t, DragSourceListener dsl)

java.util.

EventListener Serializable DragSourceListener


void void void void void dragDropEnd (DragSourceDropEvent dsde) dragEnter (DragSourceDragEvent dsde) dragExit (DragSourceEvent dse) dragOver (DragSourceDragEvent dsde) dropActionChanged (DragSourceDragEvent dsde)

DragSourceMotionListener
void dragMouseMoved (DragSourceDragEvent dsde)

Accessors Component Cursor DragSource int Transferable DragGestureEvent Event Methods void void Other Methods void # void

getComponent () get / setCursor () getDragSource () getSourceActions () getTransferable () getTrigger () addDragSourceListener (DragSourceListener dsl) removeDragSourceListener (DragSourceListener dsl) transferablesFlavorsChanged () updateCurrentCursor (int dropOp, int targetAct, int status)

DragSourceAdapter

DragSource
DragSource () Static Methods DragSource getDefaultDragSource () boolean isDragImageSupported () Accessors FlavorMap getFlavorMap () Event Methods

Serializable
#

void void DragGestureRecognizer DragGestureRecognizer DragSourceContext

DragSourceListener[] DragSourceMotionListener[] EventListener[] void void void void

add / removeDragSourceListener (DragSourceListener dsl) add / removeDragSourceMotionListener (DragSourceMotionListener dsml) createDefaultDragGestureRecognizer (Component c, int actions, DragGestureListener dgl) createDragGestureRecognizer (Class recognizerAbstractClass, Component c, int actions, DragGestureListener dgl) createDragSourceContext (DragSourceContextPeer dscp, DragGestureEvent dgl, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable t, DragSourceListener dsl) getDragSourceListeners () getDragSourceMotionListeners () getListeners (Class listenerType) startDrag (DragGestureEvent trigger, Cursor dragCursor, Transferable transferable, DragSourceListener dsl) startDrag (DragGestureEvent trigger, Cursor dragCursor, Transferable transferable, DragSourceListener dsl, FlavorMap flavorMap) startDrag (DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point dragOffset, Transferable transferable, DragSourceListener dsl) startDrag (DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable transferable, DragSourceListener dsl, FlavorMap flavorMap) DefaultMoveDrop, DefaultLinkDrop, DefaultCopyNoDrop, DefaultMoveNoDrop, DefaultLinkNoDrop

Cursor DefaultCopyDrop,

You might also like