DragSourceDropEvent is delivered
from the DragSourceContextPeer,
via the DragSourceContext, to the dragDropEnd
method of DragSourceListeners registered with that
DragSourceContext and with its associated
DragSource.
It contains sufficient information for the
originator of the operation
to provide appropriate feedback to the end user
when the operation completes.
| Modifier and Type | Field and Description |
|---|---|
| private int | dropAction
The drop action. |
| private boolean | dropSuccess
|
| private static final long | serialVersionUID
Use serialVersionUID from JDK 1.4 for interoperability.
|
| Access | Constructor and Description |
|---|---|
| public | DragSourceDropEvent(DragSourceContext
the dsc, int DragSourceContext
associated with this DragSourceDropEventthe drop action action, boolean a boolean indicating if the drop was successful success)Construct a |
| public | DragSourceDropEvent(DragSourceContext
the dsc, int DragSourceContext
associated with this DragSourceDropEventthe drop action action, boolean a boolean indicating if the drop was successful success, int the horizontal coordinate for the cursor location x, int the vertical coordinate for the cursor location y)Construct a |
| public | DragSourceDropEvent(DragSourceContext
the dsc)DragSourceContextConstruct a |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the action performed by the target on the subject of the drop if the drop target accepted the drop and the target drop action is supported by the drag source; otherwise,DnDConstants.ACTION_NONE.This method returns an |
| public boolean | Returns: true if the drop target accepted the drop and
successfully performed a drop action;
false if the drop target rejected the drop or
if the drop target accepted the drop, but failed to perform
a drop action.This method returns a |
| dropAction | back to summary |
|---|---|
| private int dropAction The drop action. | |
| dropSuccess | back to summary |
|---|---|
| private boolean dropSuccess
| |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. Use serialVersionUID from JDK 1.4 for interoperability. | |
| DragSourceDropEvent | back to summary |
|---|---|
| public DragSourceDropEvent(DragSourceContext dsc, int action, boolean success) Construct a
The argument
| |
| DragSourceDropEvent | back to summary |
|---|---|
| public DragSourceDropEvent(DragSourceContext dsc, int action, boolean success, int x, int y) Construct a
The argument
| |
| DragSourceDropEvent | back to summary |
|---|---|
| public DragSourceDropEvent(DragSourceContext dsc) Construct a
| |
| getDropAction | back to summary |
|---|---|
| public int getDropAction() This method returns an
| |
| getDropSuccess | back to summary |
|---|---|
| public boolean getDropSuccess() This method returns a
| |