|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TransferDropTargetListener
A TransferDropTargetListener is a DropTragetListener
that handles one type of SWT Transfer.
The purpose of a TransferDropTargetListener is to:
TransferDropTargetListener
will not be used if isEnabled returns false.
DropTarget.
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 type that this listener can
accept a drop operation for. |
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 |
|---|
Transfer getTransfer()
Transfer type that this listener can
accept a drop operation for.
Transfer for this listenerboolean isEnabled(DropTargetEvent event)
true if this listener can handle the drop
based on the given DropTargetEvent.
This method is called by the DelegatingDropAdapter only
if the DropTargetEvent contains a transfer data type
supported by this listener. The Transfer returned by the
#getTransfer() method is used for this purpose.
event - the drop target event
true if the listener is enabled for the given
drop target event.
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.