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, toStringprotected 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.