Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

oracle.ide.util.dnd
Class DefaultDropTargetListener

java.lang.Object
  extended by oracle.ide.util.dnd.DefaultDropTargetListener
All Implemented Interfaces:
java.awt.dnd.DropTargetListener, java.util.EventListener

public class DefaultDropTargetListener
extends java.lang.Object
implements java.awt.dnd.DropTargetListener

The DefaultDropTargetListener can be use to handle drop behavior from any view. Views need to implement the DefaultDropTargetListener.DropSite interface.


Nested Class Summary
static interface DefaultDropTargetListener.DropSite
           
 
Field Summary
static java.awt.datatransfer.DataFlavor JAVA_FILELIST_FLAVOR
          Public reference to the DataFlavor for a Java file list.
 
Constructor Summary
DefaultDropTargetListener(DefaultDropTargetListener.DropSite dropSite)
          Construct a new DefaultDropTarget.
 
Method Summary
protected  void doDefaultAction(java.awt.dnd.DropTargetDragEvent event)
          Common handler for all DropTargetListener drag event methods that take a DropTargetDragEvent parameter.
 void dragEnter(java.awt.dnd.DropTargetDragEvent event)
          Called when a drag operation has encountered the DropTarget.
 void dragExit(java.awt.dnd.DropTargetEvent event)
          The drag operation has departed the DropTarget without dropping.
 void dragOver(java.awt.dnd.DropTargetDragEvent event)
          Called when a drag operation is ongoing on the DropTarget.
 void drop(java.awt.dnd.DropTargetDropEvent event)
          The drag operation has terminated with a drop on this DropTarget.
 void dropActionChanged(java.awt.dnd.DropTargetDragEvent event)
          Called if the user has modified the current drop gesture.
protected  boolean isDataFlavorSupported(java.awt.dnd.DropTargetDragEvent event)
           
protected  boolean isDragOK(java.awt.dnd.DropTargetDragEvent event)
          Returns whether this DropTarget can accept the drag event indicated by the DropTargetDragEvent parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAVA_FILELIST_FLAVOR

public static final java.awt.datatransfer.DataFlavor JAVA_FILELIST_FLAVOR
Public reference to the DataFlavor for a Java file list.

Constructor Detail

DefaultDropTargetListener

public DefaultDropTargetListener(DefaultDropTargetListener.DropSite dropSite)
Construct a new DefaultDropTarget.

Parameters:
ops - The default acceptable actions for this DropTarget
Method Detail

dragEnter

public void dragEnter(java.awt.dnd.DropTargetDragEvent event)
Called when a drag operation has encountered the DropTarget.

Specified by:
dragEnter in interface java.awt.dnd.DropTargetListener
Parameters:
event - the DropTargetDragEvent

dragOver

public void dragOver(java.awt.dnd.DropTargetDragEvent event)
Called when a drag operation is ongoing on the DropTarget.

Specified by:
dragOver in interface java.awt.dnd.DropTargetListener
Parameters:
event - the DropTargetDragEvent

dropActionChanged

public void dropActionChanged(java.awt.dnd.DropTargetDragEvent event)
Called if the user has modified the current drop gesture.

Specified by:
dropActionChanged in interface java.awt.dnd.DropTargetListener
Parameters:
event - the DropTargetDragEvent

dragExit

public void dragExit(java.awt.dnd.DropTargetEvent event)
The drag operation has departed the DropTarget without dropping.

Specified by:
dragExit in interface java.awt.dnd.DropTargetListener
Parameters:
event - the DropTargetEvent

drop

public void drop(java.awt.dnd.DropTargetDropEvent event)
The drag operation has terminated with a drop on this DropTarget. This method is responsible for undertaking the transfer of the data associated with the gesture.

Specified by:
drop in interface java.awt.dnd.DropTargetListener
Parameters:
event - the DropTargetDropEvent

doDefaultAction

protected void doDefaultAction(java.awt.dnd.DropTargetDragEvent event)
Common handler for all DropTargetListener drag event methods that take a DropTargetDragEvent parameter.

Parameters:
event - the DropTargetDragEvent

isDragOK

protected boolean isDragOK(java.awt.dnd.DropTargetDragEvent event)
Returns whether this DropTarget can accept the drag event indicated by the DropTargetDragEvent parameter.

Parameters:
event - the DropTargetDragEvent
Returns:
true if the drag operation can be accepted by this DropTarget; false otherwise

isDataFlavorSupported

protected boolean isDataFlavorSupported(java.awt.dnd.DropTargetDragEvent event)

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

Copyright © 1997, 2013, Oracle. All rights reserved.