com.allen_sauer.gwt.dnd.client
Class DragHandlerAdapter

java.lang.Object
  extended by com.allen_sauer.gwt.dnd.client.DragHandlerAdapter
All Implemented Interfaces:
DragHandler, java.util.EventListener

public class DragHandlerAdapter
extends java.lang.Object
implements DragHandler

Convenience class for anonymous inner classes not wishing to define all methods required by the DragHandler interface.


Constructor Summary
DragHandlerAdapter()
           
 
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 DragHandler.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 DragHandler.onDragStart(DragStartEvent) is fired and provides an opportunity for any registered DragHandler to throw VetoDragException to prevent the operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DragHandlerAdapter

public DragHandlerAdapter()
Method Detail

onDragEnd

public void onDragEnd(DragEndEvent event)
Description copied from interface: DragHandler
Fired when drag operation terminates.

Specified by:
onDragEnd in interface DragHandler
Parameters:
event - an event object containing information about the drag operation

onDragStart

public void onDragStart(DragStartEvent event)
Description copied from interface: DragHandler
Fired when drag is initiated.

Specified by:
onDragStart in interface DragHandler
Parameters:
event - an event object containing information about the drag operation

onPreviewDragEnd

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

Specified by:
onPreviewDragEnd in interface DragHandler
Parameters:
event - an event object containing information about the drag operation
Throws:
VetoDragException - when the drag operation is unacceptable

onPreviewDragStart

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

Specified by:
onPreviewDragStart in interface DragHandler
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.