Package eu.webtoolkit.jwt
Class WDropEvent
- java.lang.Object
-
- eu.webtoolkit.jwt.WDropEvent
-
public class WDropEvent extends java.lang.ObjectA class providing details for a drop event.- See Also:
WWidget.dropEvent(WDropEvent event)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWDropEvent.OriginalEventTypeThe 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMimeType()Returns the mime type of this drop event.WMouseEventgetMouseEvent()Returns the original mouse event.WDropEvent.OriginalEventTypegetOriginalEventType()Returns the type of the original event.WObjectgetSource()Returns the source of the drag&drop operation.WTouchEventgetTouchEvent()Returns the original touch event.
-
-
-
Constructor Detail
-
WDropEvent
public WDropEvent(WObject source, java.lang.String mimeType, WMouseEvent mouseEvent)
Constructor.
-
WDropEvent
public WDropEvent(WObject source, java.lang.String mimeType, WTouchEvent touchEvent)
Constructor.
-
-
Method Detail
-
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 java.lang.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.
-
-