com.tensegrity.gui.swt.dnd
Class SwtDropTargetAdapter

java.lang.Object
  extended bycom.tensegrity.gui.swt.dnd.SwtDropTargetAdapter
All Implemented Interfaces:
org.eclipse.swt.dnd.DropTargetListener, java.util.EventListener, SwtDropTargetListener, org.eclipse.swt.internal.SWTEventListener

public class SwtDropTargetAdapter
extends java.lang.Object
implements SwtDropTargetListener

This class is a simple adapter for the SwtDropTargetListener interface. All methods have an empty implementation and methods returning a boolean return false.

Version:
$Id: SwtDropTargetAdapter.java,v 1.5 2005/07/22 15:37:56 SebastienGuyon Exp $
Author:
S�bastien Guyon

Constructor Summary
SwtDropTargetAdapter()
           Default constructor.
 
Method Summary
 void dragAccept(org.eclipse.swt.dnd.DropTargetEvent arg0)
           TODO SG: Comment method
 void dragEnter(org.eclipse.swt.dnd.DropTargetEvent arg0)
           
 void dragLeave(org.eclipse.swt.dnd.DropTargetEvent arg0)
           
 void dragOperationChanged(org.eclipse.swt.dnd.DropTargetEvent arg0)
           
 void dragOver(org.eclipse.swt.dnd.DropTargetEvent arg0)
           
 boolean dragOverInternal(org.eclipse.swt.dnd.DropTargetEvent dtde)
          This method should be invoked as the first thing in the dragOver handler.
 void drop(org.eclipse.swt.dnd.DropTargetEvent arg0)
           
 void dropAccept(org.eclipse.swt.dnd.DropTargetEvent arg0)
           
 boolean dropInternal(org.eclipse.swt.dnd.DropTargetEvent dtde)
          This method should be invoked as the first thing in the drop handler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwtDropTargetAdapter

public SwtDropTargetAdapter()

Default constructor.

Method Detail

dragAccept

public void dragAccept(org.eclipse.swt.dnd.DropTargetEvent arg0)
Description copied from interface: SwtDropTargetListener

TODO SG: Comment method

Specified by:
dragAccept in interface SwtDropTargetListener
Parameters:
arg0 - the dnd even that occured.

dragOverInternal

public boolean dragOverInternal(org.eclipse.swt.dnd.DropTargetEvent dtde)
Description copied from interface: SwtDropTargetListener
This method should be invoked as the first thing in the dragOver handler. Only if false is returned the subclass is allowed to do further processing, otherwise the derived class must return straight from its dragOver.

Specified by:
dragOverInternal in interface SwtDropTargetListener
Parameters:
dtde - the dnd even that occured.
Returns:
true if the drag over was absorbed. If false is returned the derived class may still handle the dragOver.

dropInternal

public boolean dropInternal(org.eclipse.swt.dnd.DropTargetEvent dtde)
Description copied from interface: SwtDropTargetListener
This method should be invoked as the first thing in the drop handler. Only if false is returned the subclass is allowed to do further processing, otherwise it must return straight from its drop.

Specified by:
dropInternal in interface SwtDropTargetListener
Parameters:
dtde - the dnd even that occured.
Returns:
true if the drag over was absorbed. If false is returned the derived class may still handle the drop.

dragEnter

public void dragEnter(org.eclipse.swt.dnd.DropTargetEvent arg0)
Specified by:
dragEnter in interface org.eclipse.swt.dnd.DropTargetListener

dragLeave

public void dragLeave(org.eclipse.swt.dnd.DropTargetEvent arg0)
Specified by:
dragLeave in interface org.eclipse.swt.dnd.DropTargetListener

dragOperationChanged

public void dragOperationChanged(org.eclipse.swt.dnd.DropTargetEvent arg0)
Specified by:
dragOperationChanged in interface org.eclipse.swt.dnd.DropTargetListener

dragOver

public void dragOver(org.eclipse.swt.dnd.DropTargetEvent arg0)
Specified by:
dragOver in interface org.eclipse.swt.dnd.DropTargetListener

drop

public void drop(org.eclipse.swt.dnd.DropTargetEvent arg0)
Specified by:
drop in interface org.eclipse.swt.dnd.DropTargetListener

dropAccept

public void dropAccept(org.eclipse.swt.dnd.DropTargetEvent arg0)
Specified by:
dropAccept in interface org.eclipse.swt.dnd.DropTargetListener


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.