Tree.
Classes that wish to provide their own source image for a Tree can
extend TreeDragSourceEffect class and override the TreeDragSourceEffect.dragStart
method and set the field DragSourceEvent.image with their own image.
super method to get the default drag under effect implementation.
DragSourceEffect, DragSourceEvent, Sample code and further information
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Image |
| Access | Constructor and Description |
|---|---|
| public | TreeDragSourceEffect(Tree
the tree)Tree 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 TreeDragSourceEffect.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 | |
| TreeDragSourceEffect | back to summary |
|---|---|
| public TreeDragSourceEffect(Tree tree) 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) | |