Table.
Classes that wish to provide their own source image for a Table can
extend the TableDragSourceEffect class, override the
TableDragSourceEffect.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
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Image |
| Access | Constructor and Description |
|---|---|
| public | TableDragSourceEffect(Table
the table)Table 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 TableDragSourceEffect.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 |
| dragSourceImage | back to summary |
|---|---|
| pack-priv Image dragSourceImage | |
| TableDragSourceEffect | back to summary |
|---|---|
| public TableDragSourceEffect(Table table) 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) | |