|
Eclipse GEF 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public Transfer getTransfer()
Transfer
that this listener can handle.
public boolean isEnabled(DropTargetEvent event)
true
if this listener can handle the drop
based on the given DropTargetEvent.
event
- the current DropTargetEvent
true
if the listener is enabled.
|
Eclipse GEF 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |