Package eu.webtoolkit.jwt
Class WDropEvent
java.lang.Object
eu.webtoolkit.jwt.WDropEvent
A class providing details for a drop event.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The type of the original event. -
Constructor Summary
ConstructorDescriptionWDropEvent
(WObject source, String mimeType, WMouseEvent mouseEvent) Constructor.WDropEvent
(WObject source, String mimeType, WTouchEvent touchEvent) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the mime type of this drop event.Returns the original mouse event.Returns the type of the original event.Returns the source of the drag&drop operation.Returns the original touch event.
-
Constructor Details
-
WDropEvent
Constructor. -
WDropEvent
Constructor.
-
-
Method Details
-
getSource
Returns the source of the drag&drop operation.The source is the widget that was set draggable using
WInteractWidget#setDraggable()
. -
getMimeType
Returns the mime type of this drop event. -
getMouseEvent
Returns the original mouse event.If eventType() ==
Mouse
, this returns the original mouse event, otherwise this returns null. -
getTouchEvent
Returns the original touch event.If eventType() ==
Touch
, this returns the original touch event, otherwise this returns null. -
getOriginalEventType
Returns the type of the original event.
-