java.lang.Object | +--java.util.EventObject | +--java.awt.dnd.DragSourceEvent | +--java.awt.dnd.DragSourceDragEvent
Safe:
private int
gestureModifiers
DragSourceDragEvent(DragSourceContext dsc,
int dropAction,
int actions,
int modifiers)
DragSourceDragEvent.
DragSourceDragEvent(DragSourceContext dsc,
int dropAction,
int actions,
int modifiers,
int x,
int y)
DragSourceDragEvent given the specified
DragSourceContext, user drop action, target drop action,
modifiers and coordinates.
int
getDropAction()
int
getGestureModifiers()
int representing
the current state of the input device modifiers
associated with the user's gesture.
int
getGestureModifiersEx()
int representing
the current state of the input device extended modifiers
associated with the user's gesture.
private static final long serialVersionUID
static final int JDK_1_3_MODIFIERS
private int targetActions
private int dropAction
private int gestureModifiers
public DragSourceDragEvent(DragSourceContext dsc, int dropAction, int actions, int modifiers)
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.
dsc - the DragSourceContext that is to manage
notifications for this event.dropAction - the user drop action.actions - the target drop action.modifiers - the modifier keys down during event (shift, ctrl,
alt, meta)
Either extended _DOWN_MASK or old _MASK modifiers
should be used, but both models should not be mixed
in one event. Use of the extended modifiers is
preferred.java.awt.event.InputEvent,
DragSourceEvent.getLocation()public DragSourceDragEvent(DragSourceContext dsc, int dropAction, int actions, int modifiers, int x, int y)
DragSourceDragEvent given the specified
DragSourceContext, user drop action, target drop action,
modifiers and coordinates.
dsc - the DragSourceContext associated with this
event.dropAction - the user drop action.actions - the target drop action.modifiers - the modifier keys down during event (shift, ctrl,
alt, meta)
Either extended _DOWN_MASK or old _MASK modifiers
should be used, but both models should not be mixed
in one event. Use of the extended modifiers is
preferred.x - the horizontal coordinate for the cursor locationy - the vertical coordinate for the cursor locationjava.awt.event.InputEventpublic int getTargetActions()
public int getGestureModifiers()
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.
public int getGestureModifiersEx()
int representing
the current state of the input device extended modifiers
associated with the user's gesture.
See InputEvent.getModifiersEx()
public int getUserAction()
public int getDropAction()
private void setNewModifiers()
private void setOldModifiers()