List.
Classes that wish to provide their own source image for a List can
extend the ListDragSourceEffect class, override the
ListDragSourceEffect.dragStart method and set the field
DragSourceEvent.image with their own image.
super method to get the default drag source effect implementation.
DragSourceEffect, DragSourceEvent, Sample code and further information
| Access | Constructor and Description |
|---|---|
| public | ListDragSourceEffect(List
the list)List that the user clicks on to initiate the dragCreates a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | dragFinished(DragSourceEvent
the information associated with the drag finished event event)Overrides org. Implements org. dragFinished disposes the image
that was created in ListDragSourceEffect.dragStart.
|
| public void | dragStart(DragSourceEvent
the information associated with the drag start event event)Overrides org. Implements org. dragStart will create a default
image that will be used during the drag.
|
| pack-priv Image |
| dragList | back to summary |
|---|---|
| private List dragList | |
| dragSourceImage | back to summary |
|---|---|
| pack-priv Image dragSourceImage | |
| ListDragSourceEffect | back to summary |
|---|---|
| public ListDragSourceEffect(List list) Creates a new
| |
| dragFinished | back to summary |
|---|---|
| public void dragFinished(DragSourceEvent event) Overrides org. Implements org. This implementation of
| |
| dragStart | back to summary |
|---|---|
| public void dragStart(DragSourceEvent event) Overrides org. Implements org. This implementation of
| |
| getDragSourceImage | back to summary |
|---|---|
| pack-priv Image getDragSourceImage(DragSourceEvent event) | |