public class DropTargetEffect extends DropTargetAdapter
The drop target effect has the same API as the
DropTargetAdapter so that it can provide custom visual
feedback when a
Classes that wish to provide their own drag under effect
can extend the
DropTargetEffect and override any applicable methods
DropTargetAdapter to display their own drag under effect.
The feedback value is either one of the FEEDBACK constants defined in
DND which is applicable to instances of this class,
or it must be built by bitwise OR'ing together
(that is, using the
int "|" operator) two or more
DND effect constants.
|Constructor and Description|
Creates a new
|Modifier and Type||Method and Description|
Returns the Control which is registered for this DropTargetEffect.
Returns the item at the given x-y coordinate in the receiver or null if no such item exists.
dragEnter, dragLeave, dragOperationChanged, dragOver, drop, dropAccept
public DropTargetEffect(Control control)
DropTargetEffectto handle the drag under effect on the specified
Controlover which the user positions the cursor to drop the data
public Control getControl()
public Widget getItem(int x, int y)
x- the x coordinate used to locate the item
y- the y coordinate used to locate the item
Copyright (c) EclipseSource and others 2002, 2020.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0
Copyright (c) EclipseSource and others 2002, 2020. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0