public class DropTargetAdapter extends java.lang.Object implements DropTargetListener
DropTargetListener
interface.
Classes that wish to deal with DropTargetEvent
s 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.detail to 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.detail to 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.detail to 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.detail to be performed on the current data type
defined in event.currentDataType . |
public void dragEnter(DropTargetEvent event)
dragEnter
permits the default
operation defined in event.detail
to be performed on the current data type
defined in event.currentDataType
.
For additional information see DropTargetListener.dragEnter
.dragEnter
in interface DropTargetListener
event
- the information associated with the drag enter eventDropTargetEvent
public void dragLeave(DropTargetEvent event)
dragLeave
does nothing.
For additional information see DropTargetListener.dragOperationChanged
.dragLeave
in interface DropTargetListener
event
- the information associated with the drag leave eventDropTargetEvent
public void dragOperationChanged(DropTargetEvent event)
dragOperationChanged
permits the default
operation defined in event.detail
to be performed on the current data type
defined in event.currentDataType
.
For additional information see DropTargetListener.dragOperationChanged
.dragOperationChanged
in interface DropTargetListener
event
- the information associated with the drag operation changed eventDropTargetEvent
public void dragOver(DropTargetEvent event)
dragOver
permits the default
operation defined in event.detail
to be performed on the current data type
defined in event.currentDataType
.
For additional information see DropTargetListener.dragOver
.dragOver
in interface DropTargetListener
event
- the information associated with the drag over eventDropTargetEvent
public void drop(DropTargetEvent event)
drop
does nothing.
For additional information see DropTargetListener.drop
.drop
in interface DropTargetListener
event
- the information associated with the drop eventDropTargetEvent
public void dropAccept(DropTargetEvent event)
dropAccept
permits the default
operation defined in event.detail
to be performed on the current data type
defined in event.currentDataType
.
For additional information see DropTargetListener.dropAccept
.dropAccept
in interface DropTargetListener
event
- the information associated with the drop accept eventDropTargetEvent
Copyright (c) EclipseSource and others 2002, 2017.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0