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, Sample code and further information
| Access | Constructor and Description |
|---|---|
| public | DropTargetEffect(Control
the control)Control over which the user positions the cursor to drop the dataCreates a new |
| Modifier and Type | Method and Description |
|---|---|
| public Control | Returns: the Control which is registered for this DropTargetEffectReturns the Control which is registered for this DropTargetEffect. |
| public Widget | Returns: the item at the given x-y coordinate, or null if the coordinate is not in a selectable itemthe x coordinate used to locate the item x, int the y coordinate used to locate the item y)Returns the item at the given x-y coordinate in the receiver or null if no such item exists. |
| pack-priv Widget | |
| pack-priv Widget | |
| pack-priv TreeItem | |
| pack-priv TreeItem |
| control | back to summary |
|---|---|
| pack-priv Control control | |
| DropTargetEffect | back to summary |
|---|---|
| public DropTargetEffect(Control control) Creates a new
| |
| getControl | back to summary |
|---|---|
| public Control getControl() Returns the Control which is registered for this DropTargetEffect. This is the control over which the user positions the cursor to drop the data.
| |
| getItem | back to summary |
|---|---|
| public 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. The x-y coordinate is in the display relative coordinates.
| |
| getItem | back to summary |
|---|---|
| pack-priv Widget getItem(Table table, int x, int y) | |
| getItem | back to summary |
|---|---|
| pack-priv Widget getItem(Tree tree, int x, int y) | |
| nextItem | back to summary |
|---|---|
| pack-priv TreeItem nextItem(Tree tree, TreeItem item) | |
| previousItem | back to summary |
|---|---|
| pack-priv TreeItem previousItem(Tree tree, TreeItem item) | |