public class DragSourceDropEvent extends DragSourceEvent
DragSourceDropEvent从
DragSourceContextPeer交付,通过
DragSourceContext,到那
DragSourceContext和与其相关的
DragSource
DragSourceListeners
dragDropEnd注册的方法。它包含了对操作发起人的充分信息,在操作完成时向最终用户提供适当的反馈。
source| Constructor and Description |
|---|
DragSourceDropEvent(DragSourceContext dsc)
构建一个拖不在一滴一
DragSourceDropEvent结果。
|
DragSourceDropEvent(DragSourceContext dsc, int action, boolean success)
构建一个
DragSourceDropEvent下降,给
DragSourceContext,下降动作,和一个
boolean表示如果放弃是成功的。
|
DragSourceDropEvent(DragSourceContext dsc, int action, boolean success, int x, int y)
构建一个
DragSourceDropEvent下降,给
DragSourceContext,下降的动作,一个
boolean表示如果放弃是成功的,和坐标。
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDropAction()
此方法返回表示行动上的下降,课题的目标进行
int。
|
boolean |
getDropSuccess()
如果滴成功,此方法返回一个
boolean指示。
|
getDragSourceContext, getLocation, getX, getYgetSource, toStringpublic DragSourceDropEvent(DragSourceContext dsc, int action, boolean success)
DragSourceDropEvent下降,给
DragSourceContext,下降动作,和一个
boolean表示如果放弃是成功的。这
DragSourceDropEvent坐标都没有指定,那么
getLocation将返回
null此事件。
争论action应该是DnDConstants表示单个动作。此构造函数不投无效action任何例外。
dsc -这
DragSourceDropEvent相关的
DragSourceContext
action -下降的作用
success -布尔表示如果放弃是成功的
null
dsc
IllegalArgumentException。
DragSourceEvent.getLocation()
public DragSourceDropEvent(DragSourceContext dsc, int action, boolean success, int x, int y)
DragSourceDropEvent下降,给
DragSourceContext,下降的动作,一个
boolean表示如果放弃是成功的,和坐标。
争论action应该是DnDConstants表示单个动作。此构造函数不投无效action任何例外。
dsc -这
DragSourceDropEvent相关的
DragSourceContext
action -下降的作用
success -布尔表示如果放弃是成功的
x -光标位置的横坐标
y -光标位置的垂直坐标
null
dsc
IllegalArgumentException。
public DragSourceDropEvent(DragSourceContext dsc)
DragSourceDropEvent结果。这
DragSourceDropEvent坐标都没有指定,那么z-14dd3d9e-66fc-4309-b0f7- 33333 5bd6eef将返回这个事件
null。
dsc -
DragSourceContext
null
dsc
IllegalArgumentException。
DragSourceEvent.getLocation()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.