Class DragOverEvent


public class DragOverEvent extends ClientEvent<DragDropListener>
Event fired continuously while a dragged element is over a valid drop target.

This event carries the payload element being dragged, allowing the drop target to inspect the dragged content and provide visual feedback.

  • Constructor Details

    • DragOverEvent

      public DragOverEvent(Element payload)
      Creates a DragOverEvent with the specified payload element.
      Parameters:
      payload - the element being dragged over the drop target
  • Method Details

    • getPayload

      public Element getPayload()
      Returns the element being dragged.
      Returns:
      the dragged payload element
    • dispatchTo

      public void dispatchTo(DragDropListener listener)
      Dispatches this event to the specified listener.

      Subclasses implement this method to call the appropriate handler method on the listener interface.

      Specified by:
      dispatchTo in class Event<DragDropListener>
      Parameters:
      listener - the listener to dispatch this event to