public class DropTargetEvent extends EventObject
DropTargetEvent
是DropTargetDragEvent
和DropTargetDropEvent
的基础类。
它封装了拖放操作的当前状态,特别是当前的DropTargetContext
。
Modifier and Type | Field and Description |
---|---|
protected DropTargetContext |
context
该
DropTargetContext 与此相关
DropTargetEvent 。
|
source
Constructor and Description |
---|
DropTargetEvent(DropTargetContext dtc)
构造一个
DropTargetEvent 对象与指定的
DropTargetContext 。
|
Modifier and Type | Method and Description |
---|---|
DropTargetContext |
getDropTargetContext()
此方法返回
DropTargetContext 与此相关
DropTargetEvent 。
|
getSource, toString
protected DropTargetContext context
DropTargetContext
与此相关
DropTargetEvent
。
public DropTargetEvent(DropTargetContext dtc)
DropTargetEvent
与指定对象的
DropTargetContext
。
dtc
-
DropTargetContext
NullPointerException
- 如果
dtc
等于
null
。
EventObject.getSource()
,
getDropTargetContext()
public DropTargetContext getDropTargetContext()
DropTargetContext
与此相关
DropTargetEvent
。
DropTargetContext
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.