com.tensegrity.gui.swt.dnd
Interface SwtDropTargetListener

All Superinterfaces:
org.eclipse.swt.dnd.DropTargetListener, java.util.EventListener, org.eclipse.swt.internal.SWTEventListener
All Known Implementing Classes:
SwtDropTargetAdapter

public interface SwtDropTargetListener
extends org.eclipse.swt.dnd.DropTargetListener

The SwtDropTargetListener interface extends the SWT DropTargetListener with the following methods in order easily integrate the SWT drag-and-drop functionality into the Tensegrity Graph Framework:

Version:
$Id: SwtDropTargetListener.java,v 1.4 2005/07/22 15:45:48 SebastienGuyon Exp $
Author:
S�bastien Guyon

Method Summary
 void dragAccept(org.eclipse.swt.dnd.DropTargetEvent dte)
           TODO SG: Comment method
 boolean dragOverInternal(org.eclipse.swt.dnd.DropTargetEvent dte)
          This method should be invoked as the first thing in the dragOver handler.
 boolean dropInternal(org.eclipse.swt.dnd.DropTargetEvent dte)
          This method should be invoked as the first thing in the drop handler.
 
Methods inherited from interface org.eclipse.swt.dnd.DropTargetListener
dragEnter, dragLeave, dragOperationChanged, dragOver, drop, dropAccept
 

Method Detail

dragAccept

public void dragAccept(org.eclipse.swt.dnd.DropTargetEvent dte)

TODO SG: Comment method

Parameters:
dte - the dnd even that occured.

dropInternal

public boolean dropInternal(org.eclipse.swt.dnd.DropTargetEvent dte)
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.

Parameters:
dte - 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.

dragOverInternal

public boolean dragOverInternal(org.eclipse.swt.dnd.DropTargetEvent dte)
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.

Parameters:
dte - 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.


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