Interface DragAndDropHandler.DragAndDropCallback

  • Enclosing class:
    DragAndDropHandler

    public static interface DragAndDropHandler.DragAndDropCallback
    Callback interface for drag and drop.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onDragCancel()
      Called when the drag has been canceled.
      void onDragEnd()
      Called after the has ended on a drop or cancel.
      boolean onDragStart​(com.google.gwt.user.client.Event e)
      Called when the drag has started.
      void onDragUpdate​(com.google.gwt.user.client.Event e)
      Called on drag.
      void onDrop()
      Called when the drag has ended on a drop.
    • Method Detail

      • onDragStart

        boolean onDragStart​(com.google.gwt.user.client.Event e)
        Called when the drag has started. The drag can be canceled by returning false.
        Parameters:
        e - the original event that started the drag
        Returns:
        true if the drag is OK to start, false to cancel
      • onDragUpdate

        void onDragUpdate​(com.google.gwt.user.client.Event e)
        Called on drag.
        Parameters:
        e - the event related to the drag
      • onDragEnd

        void onDragEnd()
        Called after the has ended on a drop or cancel.
      • onDrop

        void onDrop()
        Called when the drag has ended on a drop.
      • onDragCancel

        void onDragCancel()
        Called when the drag has been canceled.