|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.ide.util.dnd.DefaultDropTargetListener
public class DefaultDropTargetListener
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 |
---|
public static final java.awt.datatransfer.DataFlavor JAVA_FILELIST_FLAVOR
Constructor Detail |
---|
public DefaultDropTargetListener(DefaultDropTargetListener.DropSite dropSite)
ops
- The default acceptable actions for this DropTargetMethod Detail |
---|
public void dragEnter(java.awt.dnd.DropTargetDragEvent event)
DropTarget
.dragEnter
in interface java.awt.dnd.DropTargetListener
event
- the DropTargetDragEvent
public void dragOver(java.awt.dnd.DropTargetDragEvent event)
DropTarget
.dragOver
in interface java.awt.dnd.DropTargetListener
event
- the DropTargetDragEvent
public void dropActionChanged(java.awt.dnd.DropTargetDragEvent event)
dropActionChanged
in interface java.awt.dnd.DropTargetListener
event
- the DropTargetDragEvent
public void dragExit(java.awt.dnd.DropTargetEvent event)
DropTarget
without dropping.dragExit
in interface java.awt.dnd.DropTargetListener
event
- the DropTargetEvent
public void drop(java.awt.dnd.DropTargetDropEvent event)
DropTarget
. This method is responsible for undertaking the transfer of the data associated with the gesture.drop
in interface java.awt.dnd.DropTargetListener
event
- the DropTargetDropEvent
protected void doDefaultAction(java.awt.dnd.DropTargetDragEvent event)
DropTargetListener
drag event methods that take a DropTargetDragEvent
parameter.event
- the DropTargetDragEvent
protected boolean isDragOK(java.awt.dnd.DropTargetDragEvent event)
DropTarget
can accept the drag event indicated by the DropTargetDragEvent
parameter.event
- the DropTargetDragEvent
true
if the drag operation can be accepted by this DropTarget
; false
otherwiseprotected boolean isDataFlavorSupported(java.awt.dnd.DropTargetDragEvent event)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |