We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.client.
Class MouseEventDetailsBuilder
- java.lang.Object
-
- com.vaadin.client.MouseEventDetailsBuilder
-
public class MouseEventDetailsBuilder extends Object
Helper class for constructing a MouseEventDetails object from a
NativeEvent
.Since:
7.0.0
Author:
Vaadin Ltd
-
-
Constructor Summary
Constructors Constructor and Description MouseEventDetailsBuilder()
-
Method Summary
All Methods Modifier and Type Method and Description static MouseEventDetails
buildMouseEventDetails(com.google.gwt.dom.client.NativeEvent evt)
Construct a
MouseEventDetails
object from the given eventstatic MouseEventDetails
buildMouseEventDetails(com.google.gwt.dom.client.NativeEvent evt, com.google.gwt.dom.client.Element relativeToElement)
Construct a
MouseEventDetails
object from the given event
-
-
-
Method Detail
-
buildMouseEventDetails
public static MouseEventDetails buildMouseEventDetails(com.google.gwt.dom.client.NativeEvent evt)
Construct a
MouseEventDetails
object from the given eventParameters:
evt
- The event to use as a source for the detailsReturns:
a MouseEventDetails containing information from the event
-
buildMouseEventDetails
public static MouseEventDetails buildMouseEventDetails(com.google.gwt.dom.client.NativeEvent evt, com.google.gwt.dom.client.Element relativeToElement)
Construct a
MouseEventDetails
object from the given eventParameters:
evt
- The event to use as a source for the detailsrelativeToElement
- The element whose positionMouseEventDetails.getRelativeX()
andMouseEventDetails.getRelativeY()
are relative to.Returns:
a MouseEventDetails containing information from the event
-
-