Module java.desktop
Package java.awt.dnd

Class DropTargetEvent

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

public class DropTargetEvent extends EventObject
DropTargetEventDropTargetDragEventDropTargetDropEvent的基类。它封装了当前拖放操作的状态,特别是当前的DropTargetContext
自版本:
1.2
参见:
  • Field Details

    • context

      protected DropTargetContext context
      与此DropTargetEvent相关联的DropTargetContext
  • Constructor Details

  • Method Details

    • getDropTargetContext

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