Package eu.webtoolkit.jwt
Class WDropEvent
java.lang.Object
eu.webtoolkit.jwt.WDropEvent
public class WDropEvent
extends java.lang.Object
A class providing details for a drop event.
- See Also:
WWidget.dropEvent(WDropEvent event)
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WDropEvent.OriginalEventType
The type of the original event. -
Constructor Summary
Constructors Constructor Description WDropEvent(WObject source, java.lang.String mimeType, WMouseEvent mouseEvent)
Constructor.WDropEvent(WObject source, java.lang.String mimeType, WTouchEvent touchEvent)
Constructor. -
Method Summary
Modifier and Type Method Description java.lang.String
getMimeType()
Returns the mime type of this drop event.WMouseEvent
getMouseEvent()
Returns the original mouse event.WDropEvent.OriginalEventType
getOriginalEventType()
Returns the type of the original event.WObject
getSource()
Returns the source of the drag&drop operation.WTouchEvent
getTouchEvent()
Returns the original touch event.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
public java.lang.String getMimeType()Returns the mime type of this drop event. -
getMouseEvent
Returns the original mouse event.If eventType() == MouseEvent, this returns the original mouse event, otherwise this returns null.
-
getTouchEvent
Returns the original touch event.If eventType() == TouchEvent, this returns the original touch event, otherwise this returns null.
-
getOriginalEventType
Returns the type of the original event.
-