java.awt.dnd
Class DragSourceDragEvent
java.lang.Object
|
+--java.util.EventObject
|
+--java.awt.dnd.DragSourceEvent
|
+--java.awt.dnd.DragSourceDragEvent
- public class DragSourceDragEvent
- extends DragSourceEvent
The DragSourceDragEvent is delivered from the DragSourceContextPeer,
via the DragSourceContext, to the currently registered DragSourceListener.
It contains state regarding the current state of the operation to enable
the operations initiator to provide the end user with the appropriate
drag over feedback.
- Since:
- JDK1.2
- See Also:
- Serialized Form
DragSourceDragEvent
public DragSourceDragEvent(DragSourceContext dsc,
int dropAction,
int actions,
int modifiers)
- Constructs a DragSourceDragEvent. This class is typically
instantiated by the DragSourceClientPeer rather than directly
by client code.
- Parameters:
dsc
- the DragSourceContext that is to manage
notifications for this event.dropAction
- the value of one of the static fields from
DNDConstants
indicating the type of user drop
action this event represents.actions
- the value of one of the static fields from
DNDConstants
indicating the type of target drop
action supported by and returned from the current drop target.modifiers
- specifies the state of the input device modifiers
associated with the user gesture.
getTargetActions
public int getTargetActions()
- Returns:
- the logical intersection of the current target, source and user actions
getGestureModifiers
public int getGestureModifiers()
- Returns:
- the current device modifiers
getUserAction
public int getUserAction()
- Returns:
- the users currently selected drop action
getDropAction
public int getDropAction()
- Returns:
- the effective drop action which is the intersection of the users
selected action, and the source and target actions.
Submit a bug or feature Version 1.2 of Java Platform API Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.