Tree.
Classes that wish to provide their own drag under effect for a Tree
can extend the TreeDropTargetEffect class and override any applicable methods
in TreeDropTargetEffect to display their own drag under effect.
super method to get the default drag under effect implementation.
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.
Note
Only one of the styles FEEDBACK_SELECT, FEEDBACK_INSERT_BEFORE or FEEDBACK_INSERT_AFTER may be specified.
DropTargetAdapter, DropTargetEvent, Sample code and further information
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | |
| pack-priv long | |
| pack-priv int | |
| pack-priv static final int | |
| pack-priv long | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| public | TreeDropTargetEffect(Tree
the tree)Tree over which the user positions the cursor to drop the dataCreates a new |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | |
| public void | dragEnter(DropTargetEvent
the information associated with the drag enter event event)Overrides org. Implements org. dragEnter provides a default drag under effect
for the feedback specified in event.feedback.
|
| public void | dragLeave(DropTargetEvent
the information associated with the drag leave event event)Overrides org. Implements org. dragLeave provides a default drag under effect
for the feedback specified in event.feedback.
|
| public void | dragOver(DropTargetEvent
the information associated with the drag over event event)Overrides org. Implements org. dragOver provides a default drag under effect
for the feedback specified in event.feedback.
|
| EXPAND_HYSTERESIS | back to summary |
|---|---|
| pack-priv static final int EXPAND_HYSTERESIS | |
| expandBeginTime | back to summary |
|---|---|
| pack-priv long expandBeginTime | |
| expandIndex | back to summary |
|---|---|
| pack-priv int expandIndex | |
| SCROLL_HYSTERESIS | back to summary |
|---|---|
| pack-priv static final int SCROLL_HYSTERESIS | |
| scrollBeginTime | back to summary |
|---|---|
| pack-priv long scrollBeginTime | |
| scrollIndex | back to summary |
|---|---|
| pack-priv int scrollIndex | |
| TreeDropTargetEffect | back to summary |
|---|---|
| public TreeDropTargetEffect(Tree tree) Creates a new
| |
| checkEffect | back to summary |
|---|---|
| pack-priv int checkEffect(int effect) | |
| dragEnter | back to summary |
|---|---|
| public void dragEnter(DropTargetEvent event) Overrides org. Implements org. This implementation of
| |
| dragLeave | back to summary |
|---|---|
| public void dragLeave(DropTargetEvent event) Overrides org. Implements org. This implementation of
| |
| dragOver | back to summary |
|---|---|
| public void dragOver(DropTargetEvent event) Overrides org. Implements org. This implementation of
| |