java.awt.dnd
22 classes of the module java.desktop.
Load them with:
using {
"java.awt.dnd"
}
Autoscroll#
interface · java.awt.dnd.Autoscroll
Methods
| Method | Ring call | Java overloads |
|---|---|---|
autoscroll | autoscroll(cursorLocn) | void autoscroll(Point cursorLocn) |
getAutoscrollInsets | getAutoscrollInsets() | Insets getAutoscrollInsets() |
DnDConstants#
class final · extends Object · java.awt.dnd.DnDConstants
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
ACTION_NONE | int | constant · static | o.ACTION_NONE |
ACTION_COPY | int | constant · static | o.ACTION_COPY |
ACTION_MOVE | int | constant · static | o.ACTION_MOVE |
ACTION_COPY_OR_MOVE | int | constant · static | o.ACTION_COPY_OR_MOVE |
ACTION_LINK | int | constant · static | o.ACTION_LINK |
ACTION_REFERENCE | int | constant · static | o.ACTION_REFERENCE |
The methods and fields of Object are inherited.
DragGestureEvent#
class · extends EventObject · java.awt.dnd.DragGestureEvent
Constructors
new DragGestureEvent(DragGestureRecognizer dgr, int act, Point ori, List evs) |
Ring: new DragGestureEvent(args) uses the constructor with the fewest parameters (at least one); new DragGestureEvent makes the object with the constructor without parameters; the others: (new DragGestureEvent).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@toArray | @toArray(array) | Object[] toArray(Object[] array) |
getComponent | getComponent() | Component getComponent() |
getDragAction | getDragAction() | int getDragAction() |
getDragOrigin | getDragOrigin() | Point getDragOrigin() |
getDragSource | getDragSource() | DragSource getDragSource() |
getSourceAsDragGestureRecognizer | getSourceAsDragGestureRecognizer() | DragGestureRecognizer getSourceAsDragGestureRecognizer() |
getTriggerEvent | getTriggerEvent() | InputEvent getTriggerEvent() |
iterator | iterator() | Iterator iterator() |
startDrag | startDrag([dragCursor,transferable])startDrag([ :dragCursor = v, :transferable = v ])startDrag([dragCursor,transferable,dsl])startDrag([ :dragCursor = v, :transferable = v, :dsl = v ])startDrag([dragCursor,dragImage,imageOffset,transferable,dsl])startDrag([ :dragCursor = v, :dragImage = v, :imageOffset = v, :transferable = v, :dsl = v ]) | void startDrag(Cursor dragCursor, Transferable transferable)void startDrag(Cursor dragCursor, Transferable transferable, DragSourceListener dsl)void startDrag(Cursor dragCursor, Image dragImage, Point imageOffset, Transferable transferable, DragSourceListener dsl) |
toArray | toArray() | Object[] toArray() |
The methods and fields of EventObject are inherited.
DragGestureListener#
interface · java.awt.dnd.DragGestureListener
Extends: EventListener
Methods
| Method | Ring call | Java overloads |
|---|---|---|
dragGestureRecognized | dragGestureRecognized(dge) | void dragGestureRecognized(DragGestureEvent dge) |
DragGestureRecognizer#
abstract · extends Object · java.awt.dnd.DragGestureRecognizer
Implements: Serializable
Methods
| Method | Ring call | Java overloads |
|---|---|---|
addDragGestureListener | addDragGestureListener(dgl) | void addDragGestureListener(DragGestureListener dgl) |
getComponent | getComponent() | Component getComponent() |
getDragSource | getDragSource() | DragSource getDragSource() |
getSourceActions | getSourceActions() | int getSourceActions() |
getTriggerEvent | getTriggerEvent() | InputEvent getTriggerEvent() |
removeDragGestureListener | removeDragGestureListener(dgl) | void removeDragGestureListener(DragGestureListener dgl) |
resetRecognizer | resetRecognizer() | void resetRecognizer() |
setComponent | setComponent(c) | void setComponent(Component c) |
setSourceActions | setSourceActions(actions) | void setSourceActions(int actions) |
The methods and fields of Object are inherited.
DragSource#
class · extends Object · java.awt.dnd.DragSource
Implements: Serializable
Constructors
new DragSource() |
Ring: new DragSource(args) uses the constructor with the fewest parameters (at least one); new DragSource makes the object with the constructor without parameters; the others: (new DragSource).@New([ :param = value ]) or .@New([v1,v2]).
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
DefaultCopyDrop | Cursor | constant · static | o.DefaultCopyDrop |
DefaultMoveDrop | Cursor | constant · static | o.DefaultMoveDrop |
DefaultLinkDrop | Cursor | constant · static | o.DefaultLinkDrop |
DefaultCopyNoDrop | Cursor | constant · static | o.DefaultCopyNoDrop |
DefaultMoveNoDrop | Cursor | constant · static | o.DefaultMoveNoDrop |
DefaultLinkNoDrop | Cursor | constant · static | o.DefaultLinkNoDrop |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
addDragSourceListener | addDragSourceListener(dsl) | void addDragSourceListener(DragSourceListener dsl) |
addDragSourceMotionListener | addDragSourceMotionListener(dsml) | void addDragSourceMotionListener(DragSourceMotionListener dsml) |
createDefaultDragGestureRecognizer | createDefaultDragGestureRecognizer(c,actions,dgl) | DragGestureRecognizer createDefaultDragGestureRecognizer(Component c, int actions, DragGestureListener dgl) |
createDragGestureRecognizer | createDragGestureRecognizer(recognizerAbstractClass,c,actions,dgl) | DragGestureRecognizer createDragGestureRecognizer(Class recognizerAbstractClass, Component c, int actions, DragGestureListener dgl) |
getDefaultDragSource | getDefaultDragSource() | static DragSource getDefaultDragSource() |
getDragSourceListeners | getDragSourceListeners() | DragSourceListener[] getDragSourceListeners() |
getDragSourceMotionListeners | getDragSourceMotionListeners() | DragSourceMotionListener[] getDragSourceMotionListeners() |
getDragThreshold | getDragThreshold() | static int getDragThreshold() |
getFlavorMap | getFlavorMap() | FlavorMap getFlavorMap() |
getListeners | getListeners(listenerType) | EventListener[] getListeners(Class listenerType) |
isDragImageSupported | isDragImageSupported() | static boolean isDragImageSupported() |
removeDragSourceListener | removeDragSourceListener(dsl) | void removeDragSourceListener(DragSourceListener dsl) |
removeDragSourceMotionListener | removeDragSourceMotionListener(dsml) | void removeDragSourceMotionListener(DragSourceMotionListener dsml) |
startDrag | startDrag([trigger,dragCursor,transferable,dsl])startDrag([ :trigger = v, :dragCursor = v, :transferable = v, :dsl = v ])startDrag([trigger,dragCursor,transferable,dsl,flavorMap])startDrag([ :trigger = v, :dragCursor = v, :transferable = v, :dsl = v, :flavorMap = v ])startDrag([trigger,dragCursor,dragImage,dragOffset,transferable,dsl])startDrag([ :trigger = v, :dragCursor = v, :dragImage = v, :dragOffset = v, :transferable = v, :dsl = v ])startDrag([trigger,dragCursor,dragImage,imageOffset,transferable,dsl,flavorMap])startDrag([ :trigger = v, :dragCursor = v, :dragImage = v, :imageOffset = v, :transferable = v, :dsl = v, :flavorMap = v ]) | void startDrag(DragGestureEvent trigger, Cursor dragCursor, Transferable transferable, DragSourceListener dsl)void startDrag(DragGestureEvent trigger, Cursor dragCursor, Transferable transferable, DragSourceListener dsl, FlavorMap flavorMap)void startDrag(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point dragOffset, Transferable transferable, DragSourceListener dsl)void startDrag(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable transferable, DragSourceListener dsl, FlavorMap flavorMap) |
The methods and fields of Object are inherited.
DragSourceAdapter#
abstract · extends Object · java.awt.dnd.DragSourceAdapter
Implements: DragSourceListener, DragSourceMotionListener
Methods
| Method | Ring call | Java overloads |
|---|---|---|
dragDropEnd | dragDropEnd(dsde) | void dragDropEnd(DragSourceDropEvent dsde) |
dragEnter | dragEnter(dsde) | void dragEnter(DragSourceDragEvent dsde) |
dragExit | dragExit(dse) | void dragExit(DragSourceEvent dse) |
dragMouseMoved | dragMouseMoved(dsde) | void dragMouseMoved(DragSourceDragEvent dsde) |
dragOver | dragOver(dsde) | void dragOver(DragSourceDragEvent dsde) |
dropActionChanged | dropActionChanged(dsde) | void dropActionChanged(DragSourceDragEvent dsde) |
The methods and fields of Object are inherited.
DragSourceContext#
class · extends Object · java.awt.dnd.DragSourceContext
Implements: DragSourceListener, DragSourceMotionListener, Serializable
Constructors
new DragSourceContext(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point offset, Transferable t, DragSourceListener dsl) |
Ring: new DragSourceContext(args) uses the constructor with the fewest parameters (at least one); new DragSourceContext makes the object with the constructor without parameters; the others: (new DragSourceContext).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
addDragSourceListener | addDragSourceListener(dsl) | void addDragSourceListener(DragSourceListener dsl) |
dragDropEnd | dragDropEnd(dsde) | void dragDropEnd(DragSourceDropEvent dsde) |
dragEnter | dragEnter(dsde) | void dragEnter(DragSourceDragEvent dsde) |
dragExit | dragExit(dse) | void dragExit(DragSourceEvent dse) |
dragMouseMoved | dragMouseMoved(dsde) | void dragMouseMoved(DragSourceDragEvent dsde) |
dragOver | dragOver(dsde) | void dragOver(DragSourceDragEvent dsde) |
dropActionChanged | dropActionChanged(dsde) | void dropActionChanged(DragSourceDragEvent dsde) |
getComponent | getComponent() | Component getComponent() |
getCursor | getCursor() | Cursor getCursor() |
getDragSource | getDragSource() | DragSource getDragSource() |
getSourceActions | getSourceActions() | int getSourceActions() |
getTransferable | getTransferable() | Transferable getTransferable() |
getTrigger | getTrigger() | DragGestureEvent getTrigger() |
removeDragSourceListener | removeDragSourceListener(dsl) | void removeDragSourceListener(DragSourceListener dsl) |
setCursor | setCursor(c) | void setCursor(Cursor c) |
transferablesFlavorsChanged | transferablesFlavorsChanged() | void transferablesFlavorsChanged() |
The methods and fields of Object are inherited.
DragSourceDragEvent#
class · extends DragSourceEvent · java.awt.dnd.DragSourceDragEvent
Constructors
new DragSourceDragEvent(DragSourceContext dsc, int dropAction, int action, int modifiers) |
new DragSourceDragEvent(DragSourceContext dsc, int dropAction, int action, int modifiers, int x, int y) |
Ring: new DragSourceDragEvent(args) uses the constructor with the fewest parameters (at least one); new DragSourceDragEvent makes the object with the constructor without parameters; the others: (new DragSourceDragEvent).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getDropAction | getDropAction() | int getDropAction() |
getGestureModifiers | getGestureModifiers() | int getGestureModifiers() |
getGestureModifiersEx | getGestureModifiersEx() | int getGestureModifiersEx() |
getTargetActions | getTargetActions() | int getTargetActions() |
getUserAction | getUserAction() | int getUserAction() |
The methods and fields of DragSourceEvent are inherited.
DragSourceDropEvent#
class · extends DragSourceEvent · java.awt.dnd.DragSourceDropEvent
Constructors
new DragSourceDropEvent(DragSourceContext dsc) |
new DragSourceDropEvent(DragSourceContext dsc, int action, boolean success) |
new DragSourceDropEvent(DragSourceContext dsc, int action, boolean success, int x, int y) |
Ring: new DragSourceDropEvent(args) uses the constructor with the fewest parameters (at least one); new DragSourceDropEvent makes the object with the constructor without parameters; the others: (new DragSourceDropEvent).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getDropAction | getDropAction() | int getDropAction() |
getDropSuccess | getDropSuccess() | boolean getDropSuccess() |
The methods and fields of DragSourceEvent are inherited.
DragSourceEvent#
class · extends EventObject · java.awt.dnd.DragSourceEvent
Constructors
new DragSourceEvent(DragSourceContext dsc) |
new DragSourceEvent(DragSourceContext dsc, int x, int y) |
Ring: new DragSourceEvent(args) uses the constructor with the fewest parameters (at least one); new DragSourceEvent makes the object with the constructor without parameters; the others: (new DragSourceEvent).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getDragSourceContext | getDragSourceContext() | DragSourceContext getDragSourceContext() |
getLocation | getLocation() | Point getLocation() |
getX | getX() | int getX() |
getY | getY() | int getY() |
The methods and fields of EventObject are inherited.
DragSourceListener#
interface · java.awt.dnd.DragSourceListener
Extends: EventListener
Methods
| Method | Ring call | Java overloads |
|---|---|---|
dragDropEnd | dragDropEnd(dsde) | void dragDropEnd(DragSourceDropEvent dsde) |
dragEnter | dragEnter(dsde) | void dragEnter(DragSourceDragEvent dsde) |
dragExit | dragExit(dse) | void dragExit(DragSourceEvent dse) |
dragOver | dragOver(dsde) | void dragOver(DragSourceDragEvent dsde) |
dropActionChanged | dropActionChanged(dsde) | void dropActionChanged(DragSourceDragEvent dsde) |
DragSourceMotionListener#
interface · java.awt.dnd.DragSourceMotionListener
Extends: EventListener
Methods
| Method | Ring call | Java overloads |
|---|---|---|
dragMouseMoved | dragMouseMoved(dsde) | void dragMouseMoved(DragSourceDragEvent dsde) |
DropTarget#
class · extends Object · java.awt.dnd.DropTarget
Implements: DropTargetListener, Serializable
Constructors
new DropTarget() |
new DropTarget(Component c, DropTargetListener dtl) |
new DropTarget(Component c, int ops, DropTargetListener dtl) |
new DropTarget(Component c, int ops, DropTargetListener dtl, boolean act) |
new DropTarget(Component c, int ops, DropTargetListener dtl, boolean act, FlavorMap fm) |
Ring: new DropTarget(args) uses the constructor with the fewest parameters (at least one); new DropTarget makes the object with the constructor without parameters; the others: (new DropTarget).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
addDropTargetListener | addDropTargetListener(dtl) | void addDropTargetListener(DropTargetListener dtl) |
addNotify | addNotify() | void addNotify() |
dragEnter | dragEnter(dtde) | void dragEnter(DropTargetDragEvent dtde) |
dragExit | dragExit(dte) | void dragExit(DropTargetEvent dte) |
dragOver | dragOver(dtde) | void dragOver(DropTargetDragEvent dtde) |
drop | drop(dtde) | void drop(DropTargetDropEvent dtde) |
dropActionChanged | dropActionChanged(dtde) | void dropActionChanged(DropTargetDragEvent dtde) |
getComponent | getComponent() | Component getComponent() |
getDefaultActions | getDefaultActions() | int getDefaultActions() |
getDropTargetContext | getDropTargetContext() | DropTargetContext getDropTargetContext() |
getFlavorMap | getFlavorMap() | FlavorMap getFlavorMap() |
isActive | isActive() | boolean isActive() |
removeDropTargetListener | removeDropTargetListener(dtl) | void removeDropTargetListener(DropTargetListener dtl) |
removeNotify | removeNotify() | void removeNotify() |
setActive | setActive(isActive) | void setActive(boolean isActive) |
setComponent | setComponent(c) | void setComponent(Component c) |
setDefaultActions | setDefaultActions(ops) | void setDefaultActions(int ops) |
setFlavorMap | setFlavorMap(fm) | void setFlavorMap(FlavorMap fm) |
The methods and fields of Object are inherited.
DropTargetAdapter#
abstract · extends Object · java.awt.dnd.DropTargetAdapter
Implements: DropTargetListener
Methods
| Method | Ring call | Java overloads |
|---|---|---|
dragEnter | dragEnter(dtde) | void dragEnter(DropTargetDragEvent dtde) |
dragExit | dragExit(dte) | void dragExit(DropTargetEvent dte) |
dragOver | dragOver(dtde) | void dragOver(DropTargetDragEvent dtde) |
drop | drop(dtde) | void drop(DropTargetDropEvent dtde) |
dropActionChanged | dropActionChanged(dtde) | void dropActionChanged(DropTargetDragEvent dtde) |
The methods and fields of Object are inherited.
DropTargetContext#
class final · extends Object · java.awt.dnd.DropTargetContext
Implements: Serializable
Methods
| Method | Ring call | Java overloads |
|---|---|---|
dropComplete | dropComplete(success) | void dropComplete(boolean success) |
getComponent | getComponent() | Component getComponent() |
getDropTarget | getDropTarget() | DropTarget getDropTarget() |
The methods and fields of Object are inherited.
DropTargetDragEvent#
class · extends DropTargetEvent · java.awt.dnd.DropTargetDragEvent
Constructors
new DropTargetDragEvent(DropTargetContext dtc, Point cursorLocn, int dropAction, int srcActions) |
Ring: new DropTargetDragEvent(args) uses the constructor with the fewest parameters (at least one); new DropTargetDragEvent makes the object with the constructor without parameters; the others: (new DropTargetDragEvent).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
acceptDrag | acceptDrag(dragOperation) | void acceptDrag(int dragOperation) |
getCurrentDataFlavors | getCurrentDataFlavors() | DataFlavor[] getCurrentDataFlavors() |
getCurrentDataFlavorsAsList | getCurrentDataFlavorsAsList() | List getCurrentDataFlavorsAsList() |
getDropAction | getDropAction() | int getDropAction() |
getLocation | getLocation() | Point getLocation() |
getSourceActions | getSourceActions() | int getSourceActions() |
getTransferable | getTransferable() | Transferable getTransferable() |
isDataFlavorSupported | isDataFlavorSupported(df) | boolean isDataFlavorSupported(DataFlavor df) |
rejectDrag | rejectDrag() | void rejectDrag() |
The methods and fields of DropTargetEvent are inherited.
DropTargetDropEvent#
class · extends DropTargetEvent · java.awt.dnd.DropTargetDropEvent
Constructors
new DropTargetDropEvent(DropTargetContext dtc, Point cursorLocn, int dropAction, int srcActions) |
new DropTargetDropEvent(DropTargetContext dtc, Point cursorLocn, int dropAction, int srcActions, boolean isLocal) |
Ring: new DropTargetDropEvent(args) uses the constructor with the fewest parameters (at least one); new DropTargetDropEvent makes the object with the constructor without parameters; the others: (new DropTargetDropEvent).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
acceptDrop | acceptDrop(dropAction) | void acceptDrop(int dropAction) |
dropComplete | dropComplete(success) | void dropComplete(boolean success) |
getCurrentDataFlavors | getCurrentDataFlavors() | DataFlavor[] getCurrentDataFlavors() |
getCurrentDataFlavorsAsList | getCurrentDataFlavorsAsList() | List getCurrentDataFlavorsAsList() |
getDropAction | getDropAction() | int getDropAction() |
getLocation | getLocation() | Point getLocation() |
getSourceActions | getSourceActions() | int getSourceActions() |
getTransferable | getTransferable() | Transferable getTransferable() |
isDataFlavorSupported | isDataFlavorSupported(df) | boolean isDataFlavorSupported(DataFlavor df) |
isLocalTransfer | isLocalTransfer() | boolean isLocalTransfer() |
rejectDrop | rejectDrop() | void rejectDrop() |
The methods and fields of DropTargetEvent are inherited.
DropTargetEvent#
class · extends EventObject · java.awt.dnd.DropTargetEvent
Constructors
new DropTargetEvent(DropTargetContext dtc) |
Ring: new DropTargetEvent(args) uses the constructor with the fewest parameters (at least one); new DropTargetEvent makes the object with the constructor without parameters; the others: (new DropTargetEvent).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getDropTargetContext | getDropTargetContext() | DropTargetContext getDropTargetContext() |
The methods and fields of EventObject are inherited.
DropTargetListener#
interface · java.awt.dnd.DropTargetListener
Extends: EventListener
Methods
| Method | Ring call | Java overloads |
|---|---|---|
dragEnter | dragEnter(dtde) | void dragEnter(DropTargetDragEvent dtde) |
dragExit | dragExit(dte) | void dragExit(DropTargetEvent dte) |
dragOver | dragOver(dtde) | void dragOver(DropTargetDragEvent dtde) |
drop | drop(dtde) | void drop(DropTargetDropEvent dtde) |
dropActionChanged | dropActionChanged(dtde) | void dropActionChanged(DropTargetDragEvent dtde) |
InvalidDnDOperationException#
class · extends IllegalStateException · java.awt.dnd.InvalidDnDOperationException
Constructors
new InvalidDnDOperationException() |
new InvalidDnDOperationException(String msg) |
Ring: new InvalidDnDOperationException(args) uses the constructor with the fewest parameters (at least one); new InvalidDnDOperationException makes the object with the constructor without parameters; the others: (new InvalidDnDOperationException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of IllegalStateException are inherited.
MouseDragGestureRecognizer#
abstract · extends DragGestureRecognizer · java.awt.dnd.MouseDragGestureRecognizer
Implements: MouseListener, MouseMotionListener
Methods
| Method | Ring call | Java overloads |
|---|---|---|
mouseClicked | mouseClicked(e) | void mouseClicked(MouseEvent e) |
mouseDragged | mouseDragged(e) | void mouseDragged(MouseEvent e) |
mouseEntered | mouseEntered(e) | void mouseEntered(MouseEvent e) |
mouseExited | mouseExited(e) | void mouseExited(MouseEvent e) |
mouseMoved | mouseMoved(e) | void mouseMoved(MouseEvent e) |
mousePressed | mousePressed(e) | void mousePressed(MouseEvent e) |
mouseReleased | mouseReleased(e) | void mouseReleased(MouseEvent e) |
The methods and fields of DragGestureRecognizer are inherited.