org.xwiki.gwt.user.client
Interface DragListener

All Known Implementing Classes:
DialogBox

public interface DragListener

Interface for listening to drag events.

Version:
$Id: DragListener.java 24888 2009-11-06 02:16:19Z sdumitriu $

Method Summary
 void onDrag(com.google.gwt.user.client.ui.Widget sender, int x, int y)
          This event is fired at the source of the drag, that is, the element where DragStart was fired, during the drag operation.
 void onDragEnd(com.google.gwt.user.client.ui.Widget sender, int x, int y)
          The source of the drag will receive a DragEnd event when the drag operation is complete, whether it was successful or not.
 void onDragStart(com.google.gwt.user.client.ui.Widget sender, int x, int y)
          Fired on an element when a drag is started.
 

Method Detail

onDragStart

void onDragStart(com.google.gwt.user.client.ui.Widget sender,
                 int x,
                 int y)
Fired on an element when a drag is started. The user is requesting to drag the element the DragStart event is fired at (the sender of the notification). During this event, a listener would set information such the drag data and image to be associated with the drag.

Parameters:
sender - The object the user is requesting to drag.
x - the horizontal coordinate of the mouse when the event was fired.
y - the vertical coordinate of the mouse when the event was fired.

onDrag

void onDrag(com.google.gwt.user.client.ui.Widget sender,
            int x,
            int y)
This event is fired at the source of the drag, that is, the element where DragStart was fired, during the drag operation.

Parameters:
sender - The object being dragged.
x - the horizontal coordinate of the mouse when the event was fired.
y - the vertical coordinate of the mouse when the event was fired.

onDragEnd

void onDragEnd(com.google.gwt.user.client.ui.Widget sender,
               int x,
               int y)
The source of the drag will receive a DragEnd event when the drag operation is complete, whether it was successful or not.

Parameters:
sender - The object the the user has stopped dragging.
x - the horizontal coordinate of the mouse when the event was fired.
y - the vertical coordinate of the mouse when the event was fired.


Copyright © 2004-2011 XWiki. All Rights Reserved.