JavaTM Platform
Standard Ed. 6

java.awt.dnd
类 DropTargetEvent

java.lang.Object
  继承者 java.util.EventObject
      继承者 java.awt.dnd.DropTargetEvent
所有已实现的接口:
Serializable
直接已知子类:
DropTargetDragEvent, DropTargetDropEvent

public class DropTargetEvent
     
extends EventObject

DropTargetEventDropTargetDragEventDropTargetDropEvent 的基类。它封装了 Drag 和 Drop 操作的当前状态,特别是当前的 DropTargetContext

从以下版本开始:
1.2
另请参见:
序列化表格

字段摘要
protected  DropTargetContext context
          与此 DropTargetEvent 相关的 DropTargetContext
 
从类 java.util.EventObject 继承的字段
source
 
构造方法摘要
DropTargetEvent(DropTargetContext dtc)
          构造一个具有指定 DropTargetContextDropTargetEvent
 
方法摘要
 DropTargetContext getDropTargetContext()
          此方法返回与该 DropTargetEvent 相关的 DropTargetContext
 
从类 java.util.EventObject 继承的方法
getSource, toString
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

context

protected DropTargetContext context
与此 DropTargetEvent 相关的 DropTargetContext

构造方法详细信息

DropTargetEvent

public DropTargetEvent(DropTargetContext dtc)
构造一个具有指定 DropTargetContextDropTargetEvent

参数:
dtc - DropTargetContext
方法详细信息

getDropTargetContext

public DropTargetContext getDropTargetContext()
此方法返回与该 DropTargetEvent 相关的 DropTargetContext

返回:
DropTargetContext

JavaTM Platform
Standard Ed. 6

提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策