|
Eclipse Remote Application Platform | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.swt.dnd.DropTargetAdapter org.eclipse.swt.dnd.DropTargetEffect
public class DropTargetEffect
This class provides a default drag under effect during a drag and drop. The current implementation does not provide any visual feedback.
The drop target effect has the same API as the
DropTargetAdapter
so that it can provide custom visual
feedback when a DropTargetEvent
occurs.
Classes that wish to provide their own drag under effect
can extend the DropTargetEffect
and override any applicable methods
in DropTargetAdapter
to display their own drag under effect.
The feedback value is either one of the FEEDBACK constants defined in
class 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
of those DND
effect constants.
DropTargetAdapter
,
DropTargetEvent
Constructor Summary | |
---|---|
DropTargetEffect(Control control)
Creates a new DropTargetEffect to handle the drag under effect on the specified
Control . |
Method Summary | |
---|---|
Control |
getControl()
Returns the Control which is registered for this DropTargetEffect. |
Widget |
getItem(int x,
int y)
Returns the item at the given x-y coordinate in the receiver or null if no such item exists. |
Methods inherited from class org.eclipse.swt.dnd.DropTargetAdapter |
---|
dragEnter, dragLeave, dragOperationChanged, dragOver, drop, dropAccept |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DropTargetEffect(Control control)
DropTargetEffect
to handle the drag under effect on the specified
Control
.
control
- the Control
over which the user positions the cursor to drop the data
java.lang.IllegalArgumentException
- Method Detail |
---|
public Control getControl()
public Widget getItem(int x, int y)
x
- the x coordinate used to locate the itemy
- the y coordinate used to locate the item
|
Eclipse Remote Application Platform | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) EclipseSource and others 2002, 2013. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0