Package org.eclipse.swt.dnd
Class DropTargetAdapter
java.lang.Object
org.eclipse.swt.dnd.DropTargetAdapter
- All Implemented Interfaces:
- EventListener,- DropTargetListener
- Direct Known Subclasses:
- DropTargetEffect,- ViewerDropAdapter
This adapter class provides default implementations for the
 methods described by the 
DropTargetListener interface.
 
 Classes that wish to deal with DropTargetEvents can
 extend this class and override only the methods which they are
 interested in.
 
Please note, there are subtle difference in DND behavior on different OS's. For example during a file transfer, Windows will put out the file path as soon as the drag begins, where as Linux will make it available only on a drop operation. For correct crossplatform behavior, it is recommended to delay OS interaction until drop has occurred or verify the correctness of the operation across platforms.
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoiddragEnter(DropTargetEvent event) This implementation ofdragEnterpermits the default operation defined inevent.detailto be performed on the current data type defined inevent.currentDataType.voiddragLeave(DropTargetEvent event) This implementation ofdragLeavedoes nothing.voidThis implementation ofdragOperationChangedpermits the default operation defined inevent.detailto be performed on the current data type defined inevent.currentDataType.voiddragOver(DropTargetEvent event) This implementation ofdragOverpermits the default operation defined inevent.detailto be performed on the current data type defined inevent.currentDataType.voiddrop(DropTargetEvent event) This implementation ofdropdoes nothing.voiddropAccept(DropTargetEvent event) This implementation ofdropAcceptpermits the default operation defined inevent.detailto be performed on the current data type defined inevent.currentDataType.
- 
Constructor Details- 
DropTargetAdapterpublic DropTargetAdapter()
 
- 
- 
Method Details- 
dragEnterThis implementation ofdragEnterpermits the default operation defined inevent.detailto be performed on the current data type defined inevent.currentDataType. For additional information seeDropTargetListener.dragEnter.- Specified by:
- dragEnterin interface- DropTargetListener
- Parameters:
- event- the information associated with the drag enter event
- See Also:
 
- 
dragLeaveThis implementation ofdragLeavedoes nothing. For additional information seeDropTargetListener.dragOperationChanged.- Specified by:
- dragLeavein interface- DropTargetListener
- Parameters:
- event- the information associated with the drag leave event
- See Also:
 
- 
dragOperationChangedThis implementation ofdragOperationChangedpermits the default operation defined inevent.detailto be performed on the current data type defined inevent.currentDataType. For additional information seeDropTargetListener.dragOperationChanged.- Specified by:
- dragOperationChangedin interface- DropTargetListener
- Parameters:
- event- the information associated with the drag operation changed event
- See Also:
 
- 
dragOverThis implementation ofdragOverpermits the default operation defined inevent.detailto be performed on the current data type defined inevent.currentDataType. For additional information seeDropTargetListener.dragOver.- Specified by:
- dragOverin interface- DropTargetListener
- Parameters:
- event- the information associated with the drag over event
- See Also:
 
- 
dropThis implementation ofdropdoes nothing. For additional information seeDropTargetListener.drop.- Specified by:
- dropin interface- DropTargetListener
- Parameters:
- event- the information associated with the drop event
- See Also:
 
- 
dropAcceptThis implementation ofdropAcceptpermits the default operation defined inevent.detailto be performed on the current data type defined inevent.currentDataType. For additional information seeDropTargetListener.dropAccept.- Specified by:
- dropAcceptin interface- DropTargetListener
- Parameters:
- event- the information associated with the drop accept event
- See Also:
 
 
-