当前页面:
在线文档首页 >
JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档
Java(TM) 2 Platform, Standard Edition, v1.2.2 API Specification: Class DragSourceDropEvent - JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档
java.awt.dnd
Class DragSourceDropEvent
java.lang.Object
|
+--java.util.EventObject
|
+--java.awt.dnd.DragSourceEvent
|
+--java.awt.dnd.DragSourceDropEvent
- public class DragSourceDropEvent
- extends DragSourceEvent
The DragSourceDropEvent
is delivered
from the DragSourceContextPeer
,
via the DragSourceContext
, to its currently
registered DragSourceListener
's dragDropEnd()
method.
It contains sufficient information for the
originator of the operation
to provide appropriate feedback to the end user
when the operation completes.
- Since:
- JDK1.2
- See Also:
- Serialized Form
Method Summary |
int |
getDropAction()
This method returns an int representing
the action performed by the target on the subject of the drop. |
boolean |
getDropSuccess()
This method returns a boolean indicating
if the drop was a success. |
DragSourceDropEvent
public DragSourceDropEvent(DragSourceContext dsc,
int action,
boolean success)
- Construct a
DragSourceDropEvent
for a drop,
given the
DragSourceContext
, the drop action,
and a boolean
indicating if the drop was successful.
- Parameters:
dsc
- the DragSourceContext
associated with this DragSourceDropEvent
action
- the drop actionsuccess
- a boolean indicating if the drop was successful
DragSourceDropEvent
public DragSourceDropEvent(DragSourceContext dsc)
- Construct a
DragSourceDropEvent
for a drag that does not result in a drop.
- Parameters:
dsc
- the DragSourceContext
getDropSuccess
public boolean getDropSuccess()
- This method returns a
boolean
indicating
if the drop was a success.
- Returns:
- if the drop was successful
getDropAction
public int getDropAction()
- This method returns an
int
representing
the action performed by the target on the subject of the drop.
- Returns:
- the action performed by the target on the subject of the drop
Submit a bug or feature
Java, Java 2D, and JDBC are a trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.