com.allen_sauer.gwt.dnd.client
Interface DragHandler

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
DragHandlerAdapter

public interface DragHandler
extends java.util.EventListener

EventListener interface for drag-and-drop events.


Method Summary
 void onDragEnd(DragEndEvent event)
          Fired when drag operation terminates.
 void onDragStart(DragStartEvent event)
          Fired when drag is initiated.
 void onPreviewDragEnd(DragEndEvent event)
          Fired before onDragEnd(DragEndEvent) is fired and provides an opportunity for any registered DragHandler to throw VetoDragException to prevent the operation.
 void onPreviewDragStart(DragStartEvent event)
          Fired before onDragStart(DragStartEvent) is fired and provides an opportunity for any registered DragHandler to throw VetoDragException to prevent the operation.
 

Method Detail

onDragEnd

void onDragEnd(DragEndEvent event)
Fired when drag operation terminates.

Parameters:
event - an event object containing information about the drag operation

onDragStart

void onDragStart(DragStartEvent event)
Fired when drag is initiated.

Parameters:
event - an event object containing information about the drag operation

onPreviewDragEnd

void onPreviewDragEnd(DragEndEvent event)
                      throws VetoDragException
Fired before onDragEnd(DragEndEvent) is fired and provides an opportunity for any registered DragHandler to throw VetoDragException to prevent the operation.

Parameters:
event - an event object containing information about the drag operation
Throws:
VetoDragException - when the drag operation is unacceptable

onPreviewDragStart

void onPreviewDragStart(DragStartEvent event)
                        throws VetoDragException
Fired before onDragStart(DragStartEvent) is fired and provides an opportunity for any registered DragHandler to throw VetoDragException to prevent the operation.

Parameters:
event - an event object containing information about the drag operation
Throws:
VetoDragException - when the drag operation is unacceptable


Copyright © 2011 Sage Software, Inc. All rights reserved.