DropTargetAdapter

This adapter class provides default implementations for the methods described by the <code>DropTargetListener</code> interface. <p> Classes that wish to deal with <code>DropTargetEvent</code>s can extend this class and override only the methods which they are interested in. </p>

@see DropTargetListener @see DropTargetEvent @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>

Members

Functions

dragEnter
void dragEnter(DropTargetEvent event)

This implementation of <code>dragEnter</code> permits the default operation defined in <code>event.detail</code>to be performed on the current data type defined in <code>event.currentDataType</code>. For additional information see <code>DropTargetListener.dragEnter</code>.

dragLeave
void dragLeave(DropTargetEvent event)

This implementation of <code>dragLeave</code> does nothing. For additional information see <code>DropTargetListener.dragOperationChanged</code>.

dragOperationChanged
void dragOperationChanged(DropTargetEvent event)

This implementation of <code>dragOperationChanged</code> permits the default operation defined in <code>event.detail</code>to be performed on the current data type defined in <code>event.currentDataType</code>. For additional information see <code>DropTargetListener.dragOperationChanged</code>.

dragOver
void dragOver(DropTargetEvent event)

This implementation of <code>dragOver</code> permits the default operation defined in <code>event.detail</code>to be performed on the current data type defined in <code>event.currentDataType</code>. For additional information see <code>DropTargetListener.dragOver</code>.

drop
void drop(DropTargetEvent event)

This implementation of <code>drop</code> does nothing. For additional information see <code>DropTargetListener.drop</code>.

dropAccept
void dropAccept(DropTargetEvent event)

This implementation of <code>dropAccept</code> permits the default operation defined in <code>event.detail</code>to be performed on the current data type defined in <code>event.currentDataType</code>. For additional information see <code>DropTargetListener.dropAccept</code>.

Inherited Members

From DropTargetListener

dragEnter
void dragEnter(DropTargetEvent event)

The cursor has entered the drop target boundaries.

dragLeave
void dragLeave(DropTargetEvent event)

The cursor has left the drop target boundaries OR the drop has been cancelled OR the data is about to be dropped.

dragOperationChanged
void dragOperationChanged(DropTargetEvent event)

The operation being performed has changed (usually due to the user changing the selected modifier key(s) while dragging).

dragOver
void dragOver(DropTargetEvent event)

The cursor is moving over the drop target.

drop
void drop(DropTargetEvent event)

The data is being dropped. The data field contains java format of the data being dropped. To determine the type of the data object, refer to the documentation for the Transfer subclass specified in event.currentDataType.

dropAccept
void dropAccept(DropTargetEvent event)

The drop is about to be performed. The drop target is given a last chance to change the nature of the drop.

Meta