org.ocd.dcf.dnd
Class DragListenerAdapter

java.lang.Object
  |
  +--org.ocd.dcf.dnd.DragListenerAdapter
All Implemented Interfaces:
java.awt.dnd.DragGestureListener, java.awt.dnd.DragSourceListener, java.util.EventListener

public class DragListenerAdapter
extends java.lang.Object
implements java.awt.dnd.DragGestureListener, java.awt.dnd.DragSourceListener

<< License Info Goes HERE >> All Rights Reserved. DragListenerAdapter Description:

Since:
$Date: 2002/08/07 02:58:33 $
Version:
$Revision: 1.6 $
Author:
$Author: drichan $

Constructor Summary
DragListenerAdapter(DCComponent pComp)
          Create a DragListener for a specific DC Component.
DragListenerAdapter(DCComponent pComp, java.awt.dnd.DragSourceListener pListener)
          Create a DragListener for a specific DC Component.
DragListenerAdapter(java.awt.datatransfer.Transferable pTransferable, java.awt.Image pDragImage, java.awt.dnd.DragSourceListener pListener)
          Create a DragListener for a specific Object.
 
Method Summary
 void dragDropEnd(java.awt.dnd.DragSourceDropEvent pEvent)
          Fire DragDropEnd event to associated DragSourceListener
 void dragEnter(java.awt.dnd.DragSourceDragEvent pEvent)
          Fire DragEnter event to associated DragSourceListener
 void dragExit(java.awt.dnd.DragSourceEvent pEvent)
          Fire DragExit event to associated DragSourceListener
 void dragGestureRecognized(java.awt.dnd.DragGestureEvent pEvent)
          Default implementation of Drag Recognized This method will
 void dragOver(java.awt.dnd.DragSourceDragEvent pEvent)
          Fire DragOver event to associated DragSourceListener
 void dropActionChanged(java.awt.dnd.DragSourceDragEvent pEvent)
          Fire DropActionChanged event to associated DragSourceListener
 void setDragImage(java.awt.Image pDragImage)
          Set the DragImage that will be used during DnD operstions
 void setTransferable(java.awt.datatransfer.Transferable pTransferable)
          Set the Transferable object that will be used during DnD operations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DragListenerAdapter

public DragListenerAdapter(java.awt.datatransfer.Transferable pTransferable,
                           java.awt.Image pDragImage,
                           java.awt.dnd.DragSourceListener pListener)
Create a DragListener for a specific Object. If a drag operation is detected then This data will be used for the Drag Operation
Parameters:
pTransferable - that contains the Data
pDragImage - image to display during drag
pListener - listener that will be notified of DragSource events

DragListenerAdapter

public DragListenerAdapter(DCComponent pComp)
Create a DragListener for a specific DC Component. If the DCComponent is draggable then when a DragGesture occurs the Drag Operation will automatically be started.
Parameters:
pComp - the Component that we will listen for drag operations.

DragListenerAdapter

public DragListenerAdapter(DCComponent pComp,
                           java.awt.dnd.DragSourceListener pListener)
Create a DragListener for a specific DC Component. If the DCComponent is draggable then when a DragGesture occurs the Drag Operation will automatically be started.
Parameters:
pComp - the Component that we will listen for drag operations.
pListener - listener that will be notified of DragSource events
Method Detail

setTransferable

public void setTransferable(java.awt.datatransfer.Transferable pTransferable)
Set the Transferable object that will be used during DnD operations
Parameters:
pTransferable -  

setDragImage

public void setDragImage(java.awt.Image pDragImage)
Set the DragImage that will be used during DnD operstions
Parameters:
pDragImage -  

dragGestureRecognized

public void dragGestureRecognized(java.awt.dnd.DragGestureEvent pEvent)
Default implementation of Drag Recognized This method will
Specified by:
dragGestureRecognized in interface java.awt.dnd.DragGestureListener

dragOver

public void dragOver(java.awt.dnd.DragSourceDragEvent pEvent)
Fire DragOver event to associated DragSourceListener
Specified by:
dragOver in interface java.awt.dnd.DragSourceListener

dragExit

public void dragExit(java.awt.dnd.DragSourceEvent pEvent)
Fire DragExit event to associated DragSourceListener
Specified by:
dragExit in interface java.awt.dnd.DragSourceListener

dropActionChanged

public void dropActionChanged(java.awt.dnd.DragSourceDragEvent pEvent)
Fire DropActionChanged event to associated DragSourceListener
Specified by:
dropActionChanged in interface java.awt.dnd.DragSourceListener

dragEnter

public void dragEnter(java.awt.dnd.DragSourceDragEvent pEvent)
Fire DragEnter event to associated DragSourceListener
Specified by:
dragEnter in interface java.awt.dnd.DragSourceListener

dragDropEnd

public void dragDropEnd(java.awt.dnd.DragSourceDropEvent pEvent)
Fire DragDropEnd event to associated DragSourceListener
Specified by:
dragDropEnd in interface java.awt.dnd.DragSourceListener