Eclipse GEF
2.1

org.eclipse.gef.dnd
Interface TransferDropTargetListener

All Superinterfaces:
DropTargetListener, EventListener, org.eclipse.swt.internal.SWTEventListener
All Known Implementing Classes:
AbstractTransferDropTargetListener

public interface TransferDropTargetListener
extends DropTargetListener

A DropTragetListener that handles one type of SWT Transfer. The purpose of a TransferDropTargetListener is to:

DelegatingDropAdapter allows these functions to be implemented separately for unrelated types of Drags. DelegatingDropAdapter then combines the function of each TransferDropTargetListener, while allowing them to be implemented as if they were the only DragSourceListener.


Method Summary
 Transfer getTransfer()
          Returns the Transfer that this listener can handle.
 boolean isEnabled(DropTargetEvent event)
          Returns true if this listener can handle the drop based on the given DropTargetEvent.
 
Methods inherited from interface org.eclipse.swt.dnd.DropTargetListener
dragEnter, dragLeave, dragOperationChanged, dragOver, drop, dropAccept
 

Method Detail

getTransfer

public Transfer getTransfer()
Returns the Transfer that this listener can handle.

Returns:
the Transfer for this listener

isEnabled

public boolean isEnabled(DropTargetEvent event)
Returns true if this listener can handle the drop based on the given DropTargetEvent.

Parameters:
event - the current DropTargetEvent
Returns:
true if the listener is enabled.

Eclipse GEF
2.1

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.