public class DropTargetAdapter extends java.lang.Object implements DropTargetListener
DropTargetListener interface.
Classes that wish to deal with DropTargetEvents can
extend this class and override only the methods which they are
interested in.
DropTargetListener,
DropTargetEvent| Constructor and Description |
|---|
DropTargetAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
dragEnter(DropTargetEvent event)
This implementation of
dragEnter permits the default
operation defined in event.detailto be performed on the current data type
defined in event.currentDataType. |
void |
dragLeave(DropTargetEvent event)
This implementation of
dragLeave does nothing. |
void |
dragOperationChanged(DropTargetEvent event)
This implementation of
dragOperationChanged permits the default
operation defined in event.detailto be performed on the current data type
defined in event.currentDataType. |
void |
dragOver(DropTargetEvent event)
This implementation of
dragOver permits the default
operation defined in event.detailto be performed on the current data type
defined in event.currentDataType. |
void |
drop(DropTargetEvent event)
This implementation of
drop does nothing. |
void |
dropAccept(DropTargetEvent event)
This implementation of
dropAccept permits the default
operation defined in event.detailto be performed on the current data type
defined in event.currentDataType. |
public void dragEnter(DropTargetEvent event)
dragEnter permits the default
operation defined in event.detailto be performed on the current data type
defined in event.currentDataType.
For additional information see DropTargetListener.dragEnter.dragEnter in interface DropTargetListenerevent - the information associated with the drag enter eventDropTargetEventpublic void dragLeave(DropTargetEvent event)
dragLeave does nothing.
For additional information see DropTargetListener.dragOperationChanged.dragLeave in interface DropTargetListenerevent - the information associated with the drag leave eventDropTargetEventpublic void dragOperationChanged(DropTargetEvent event)
dragOperationChanged permits the default
operation defined in event.detailto be performed on the current data type
defined in event.currentDataType.
For additional information see DropTargetListener.dragOperationChanged.dragOperationChanged in interface DropTargetListenerevent - the information associated with the drag operation changed eventDropTargetEventpublic void dragOver(DropTargetEvent event)
dragOver permits the default
operation defined in event.detailto be performed on the current data type
defined in event.currentDataType.
For additional information see DropTargetListener.dragOver.dragOver in interface DropTargetListenerevent - the information associated with the drag over eventDropTargetEventpublic void drop(DropTargetEvent event)
drop does nothing.
For additional information see DropTargetListener.drop.drop in interface DropTargetListenerevent - the information associated with the drop eventDropTargetEventpublic void dropAccept(DropTargetEvent event)
dropAccept permits the default
operation defined in event.detailto be performed on the current data type
defined in event.currentDataType.
For additional information see DropTargetListener.dropAccept.dropAccept in interface DropTargetListenerevent - the information associated with the drop accept eventDropTargetEvent
Copyright (c) EclipseSource and others 2002, 2016.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0