java.lang.Objectjava.util.EventObject
java.awt.dnd.DragSourceEvent
java.awt.dnd.DragSourceDragEvent
All Implemented Interfaces:
Serializable
DragSourceDragEvent is
delivered from the DragSourceContextPeer,
via the DragSourceContext, to the DragSourceListener
registered with that DragSourceContext and with its associated
DragSource.
The DragSourceDragEvent reports the target drop action
and the user drop action that reflect the current state of
the drag operation.
Target drop action is one of DnDConstants that represents
the drop action selected by the current drop target if this drop action is
supported by the drag source or DnDConstants.ACTION_NONE if this
drop action is not supported by the drag source.
User drop action depends on the drop actions supported by the drag source and the drop action selected by the user. The user can select a drop action by pressing modifier keys during the drag operation:
Ctrl + Shift -> ACTION_LINK Ctrl -> ACTION_COPY Shift -> ACTION_MOVEIf the user selects a drop action, the user drop action is one of
DnDConstants that represents the selected drop action if this
drop action is supported by the drag source or
DnDConstants.ACTION_NONE if this drop action is not supported
by the drag source.
If the user doesn't select a drop action, the set of
DnDConstants that represents the set of drop actions supported
by the drag source is searched for DnDConstants.ACTION_MOVE,
then for DnDConstants.ACTION_COPY, then for
DnDConstants.ACTION_LINK and the user drop action is the
first constant found. If no constant is found the user drop action
is DnDConstants.ACTION_NONE.
1.2 - | Fields inherited from java.util.EventObject: |
|---|
| source |
| Constructor: |
|---|
DragSourceDragEvent.
This class is typically
instantiated by the DragSourceContextPeer
rather than directly
by client code.
The coordinates for this DragSourceDragEvent
are not specified, so getLocation will return
null for this event.
The arguments
|
DragSourceDragEvent given the specified
DragSourceContext, user drop action, target drop action,
modifiers and coordinates.
The arguments
|
| Method from java.awt.dnd.DragSourceDragEvent Summary: |
|---|
| getDropAction, getGestureModifiers, getGestureModifiersEx, getTargetActions, getUserAction |
| Methods from java.awt.dnd.DragSourceEvent: |
|---|
| getDragSourceContext, getLocation, getX, getY |
| Methods from java.util.EventObject: |
|---|
| getSource, toString |
| Methods from java.lang.Object: |
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from java.awt.dnd.DragSourceDragEvent Detail: |
|---|
|
int representing
the current state of the input device modifiers
associated with the user's gesture. Typically these
would be mouse buttons or keyboard modifiers.
If the |
int representing
the current state of the input device extended modifiers
associated with the user's gesture.
See InputEvent#getModifiersEx
If the |
|
|