Package org.eclipse.swt.dnd
Class DropTargetAdapter
java.lang.Object
org.eclipse.swt.dnd.DropTargetAdapter
- All Implemented Interfaces:
DropTargetListener
- Direct Known Subclasses:
DropTargetEffect
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.
- Since:
- 1.3
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
DropTargetAdapter
public DropTargetAdapter()
-
-
Method Details
-
dragEnter
This 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 interfaceDropTargetListener- Parameters:
event- the information associated with the drag enter event- See Also:
-
dragLeave
This implementation ofdragLeavedoes nothing. For additional information seeDropTargetListener.dragOperationChanged.- Specified by:
dragLeavein interfaceDropTargetListener- Parameters:
event- the information associated with the drag leave event- See Also:
-
dragOperationChanged
This 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 interfaceDropTargetListener- Parameters:
event- the information associated with the drag operation changed event- See Also:
-
dragOver
This 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 interfaceDropTargetListener- Parameters:
event- the information associated with the drag over event- See Also:
-
drop
This implementation ofdropdoes nothing. For additional information seeDropTargetListener.drop.- Specified by:
dropin interfaceDropTargetListener- Parameters:
event- the information associated with the drop event- See Also:
-
dropAccept
This 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 interfaceDropTargetListener- Parameters:
event- the information associated with the drop accept event- See Also:
-