public class

DropTargetEvent

extends EventObject
java.lang.Object
   ↳ java.util.EventObject
     ↳ java.awt.dnd.DropTargetEvent
Known Direct Subclasses

Class Overview

The DropTargetEvent is the base class for both the DropTargetDragEvent and the DropTargetDropEvent. It encapsulates the current state of the Drag and Drop operations, in particular the current DropTargetContext.

Summary

Fields
protected DropTargetContext context The DropTargetContext associated with this DropTargetEvent.
[Expand]
Inherited Fields
From class java.util.EventObject
Public Constructors
DropTargetEvent(DropTargetContext dtc)
Construct a DropTargetEvent with a specified DropTargetContext.
Public Methods
DropTargetContext getDropTargetContext()
This method returns the DropTargetContext associated with this DropTargetEvent.
[Expand]
Inherited Methods
From class java.util.EventObject
From class java.lang.Object

Fields

protected DropTargetContext context

The DropTargetContext associated with this DropTargetEvent.

Public Constructors

public DropTargetEvent (DropTargetContext dtc)

Construct a DropTargetEvent with a specified DropTargetContext.

Parameters
dtc the DropTargetContext

Public Methods

public DropTargetContext getDropTargetContext ()

This method returns the DropTargetContext associated with this DropTargetEvent.

Returns
  • the DropTargetContext