APIdia Launch Partner
Top Description Fields Constructors Methods
java.awt.dnd

public Class DropTargetEvent

extends EventObject
Class Inheritance
Known Direct Subclasses
java.awt.dnd.DropTargetDragEvent, java.awt.dnd.DropTargetDropEvent
Imports
java.io.Serial

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.
Since
1.2

Field Summary

Modifier and TypeField and Description
protected DropTargetContext
context

The DropTargetContext associated with this DropTargetEvent.

private static final long
serialVersionUID

Hides java.util.EventObject.serialVersionUID.

Use serialVersionUID from JDK 1.4 for interoperability.
Inherited from java.util.EventObject:
source

Constructor Summary

AccessConstructor and Description
public
DropTargetEvent(DropTargetContext
The DropTargetContext
dtc
)

Construct a DropTargetEvent object with the specified DropTargetContext.

Method Summary

Modifier and TypeMethod and Description
public DropTargetContext

Returns:

the DropTargetContext
getDropTargetContext
()

This method returns the DropTargetContext associated with this DropTargetEvent.

Inherited from java.util.EventObject:
getSourcetoString

Field Detail

contextback to summary
protected DropTargetContext context

The DropTargetContext associated with this DropTargetEvent.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.util.EventObject.serialVersionUID.

Use serialVersionUID from JDK 1.4 for interoperability.

Annotations
@Serial

Constructor Detail

DropTargetEventback to summary
public DropTargetEvent(DropTargetContext dtc)

Construct a DropTargetEvent object with the specified DropTargetContext.

Parameters
dtc:DropTargetContext

The DropTargetContext

Exceptions
NullPointerException:
if dtc equals null.
See Also
getSource(), getDropTargetContext()

Method Detail

getDropTargetContextback to summary
public DropTargetContext getDropTargetContext()

This method returns the DropTargetContext associated with this DropTargetEvent.

Returns:DropTargetContext

the DropTargetContext