public class DragSourceDropEvent extends DragSourceEvent
DragSourceDropEvent
从
DragSourceContextPeer
交付,通过
DragSourceContext
,到那
DragSourceContext
和与其相关的
DragSource
DragSourceListener
s
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, getY
getSource, toString
public 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.