Class WDropEvent

java.lang.Object
eu.webtoolkit.jwt.WDropEvent

public class WDropEvent extends Object
A class providing details for a drop event.

See Also:
  • Constructor Details

  • Method Details

    • getSource

      public WObject getSource()
      Returns the source of the drag&drop operation.

      The source is the widget that was set draggable using WInteractWidget#setDraggable().

    • getMimeType

      public String getMimeType()
      Returns the mime type of this drop event.
    • getMouseEvent

      public WMouseEvent getMouseEvent()
      Returns the original mouse event.

      If eventType() == Mouse, this returns the original mouse event, otherwise this returns null.

    • getTouchEvent

      public WTouchEvent getTouchEvent()
      Returns the original touch event.

      If eventType() == Touch, this returns the original touch event, otherwise this returns null.

    • getOriginalEventType

      public WDropEvent.OriginalEventType getOriginalEventType()
      Returns the type of the original event.