java.awt.dnd
Class DropTargetEvent

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.util.EventObject sample code for java.util.EventObject definition code for java.util.EventObject 
      extended by java.awt.dnd.DropTargetEvent
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable
Direct Known Subclasses:
DropTargetDragEvent sample code for java.awt.dnd.DropTargetDragEvent definition code for java.awt.dnd.DropTargetDragEvent , DropTargetDropEvent sample code for java.awt.dnd.DropTargetDropEvent definition code for java.awt.dnd.DropTargetDropEvent

public class DropTargetEvent
extends EventObject sample code for java.util.EventObject definition code for java.util.EventObject

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
See Also:
Serialized Form

Field Summary
protected  DropTargetContext sample code for java.awt.dnd.DropTargetContext definition code for java.awt.dnd.DropTargetContext context sample code for java.awt.dnd.DropTargetEvent.context definition code for java.awt.dnd.DropTargetEvent.context
          The DropTargetContext associated with this DropTargetEvent.
 
Fields inherited from class java.util.EventObject sample code for java.util.EventObject definition code for java.util.EventObject
source sample code for java.util.EventObject.source definition code for java.util.EventObject.source
 
Constructor Summary
DropTargetEvent sample code for java.awt.dnd.DropTargetEvent.DropTargetEvent(java.awt.dnd.DropTargetContext) definition code for java.awt.dnd.DropTargetEvent.DropTargetEvent(java.awt.dnd.DropTargetContext) (DropTargetContext sample code for java.awt.dnd.DropTargetContext definition code for java.awt.dnd.DropTargetContext  dtc)
          Construct a DropTargetEvent with a specified DropTargetContext.
 
Method Summary
 DropTargetContext sample code for java.awt.dnd.DropTargetContext definition code for java.awt.dnd.DropTargetContext getDropTargetContext sample code for java.awt.dnd.DropTargetEvent.getDropTargetContext() definition code for java.awt.dnd.DropTargetEvent.getDropTargetContext() ()
          This method returns the DropTargetContext associated with this DropTargetEvent.
 
Methods inherited from class java.util.EventObject sample code for java.util.EventObject definition code for java.util.EventObject
getSource sample code for java.util.EventObject.getSource() definition code for java.util.EventObject.getSource() , toString sample code for java.util.EventObject.toString() definition code for java.util.EventObject.toString()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

context sample code for java.awt.dnd.DropTargetEvent.context

protected DropTargetContext sample code for java.awt.dnd.DropTargetContext definition code for java.awt.dnd.DropTargetContext  context
The DropTargetContext associated with this DropTargetEvent.

Constructor Detail

DropTargetEvent sample code for java.awt.dnd.DropTargetEvent(java.awt.dnd.DropTargetContext) definition code for java.awt.dnd.DropTargetEvent(java.awt.dnd.DropTargetContext)

public DropTargetEvent(DropTargetContext sample code for java.awt.dnd.DropTargetContext definition code for java.awt.dnd.DropTargetContext  dtc)
Construct a DropTargetEvent with a specified DropTargetContext.

Parameters:
dtc - the DropTargetContext
Method Detail

getDropTargetContext sample code for java.awt.dnd.DropTargetEvent.getDropTargetContext() definition code for java.awt.dnd.DropTargetEvent.getDropTargetContext()

public DropTargetContext sample code for java.awt.dnd.DropTargetContext definition code for java.awt.dnd.DropTargetContext  getDropTargetContext()
This method returns the DropTargetContext associated with this DropTargetEvent.

Returns:
the DropTargetContext