Package 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 aNativeEvent.- Since:
- 7.0.0
- Author:
- Vaadin Ltd
-
-
Constructor Summary
Constructors Constructor Description MouseEventDetailsBuilder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MouseEventDetailsbuildMouseEventDetails(com.google.gwt.dom.client.NativeEvent evt)Construct aMouseEventDetailsobject from the given event.static MouseEventDetailsbuildMouseEventDetails(com.google.gwt.dom.client.NativeEvent evt, com.google.gwt.dom.client.Element relativeToElement)Construct aMouseEventDetailsobject from the given event.
-
-
-
Method Detail
-
buildMouseEventDetails
public static MouseEventDetails buildMouseEventDetails(com.google.gwt.dom.client.NativeEvent evt)
Construct aMouseEventDetailsobject from the given event.- Parameters:
evt- The event to use as a source for the details- Returns:
- 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 aMouseEventDetailsobject from the given event.- Parameters:
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
-
-