Closed GoogleCodeExporter closed 9 years ago
Please take a look at DragHandler which implements FiresDragEvents.
You can use:
DragController#addDragHandler(DragHandler)
DragController#removeDragHandler(DragHandler)
to receive:
DragStartEvent
DragEndEvent
Note that DragEndEvent does not yet include actual coordinates of a drop.
However,
this is planned. Will leave this issue open until this happens.
Original comment by fredsa
on 26 Mar 2007 at 5:32
As of the 2007-03-31 jars, the drag end events contain additional information
such
has an index or x/y coordinates.
Try adding this snippet to your project:
dragController.addDragHandler(new DragHandler() {
public void onDragEnd(DragEndEvent event) {
Window.alert(event.toString());
}
public void onDragStart(DragStartEvent event) {
}
public void onPreviewDragEnd(DragEndEvent event) throws VetoDragException {
}
public void onPreviewDragStart(DragStartEvent event) throws VetoDragException {
}
});
Original comment by fredsa
on 1 Apr 2007 at 2:27
The event classes (both extend DragEndEvent) currently are:
AbsolutePositionDragEndEvent - contains x/y coordinate of drop
IndexedDragEndEvent - contains index of drop
Original comment by fredsa
on 21 Apr 2007 at 8:43
Original comment by fredsa
on 23 Aug 2007 at 3:33
Original issue reported on code.google.com by
cvmoc...@gmail.com
on 26 Mar 2007 at 12:49