com.vaadin.terminal.gwt.client
Class MouseEventDetailsBuilder
java.lang.Object
com.vaadin.terminal.gwt.client.MouseEventDetailsBuilder
public class MouseEventDetailsBuilder
- extends Object
Helper class for constructing a MouseEventDetails object from a
NativeEvent
.
- Since:
- 7.0.0
- Version:
- 7.0.0.alpha3
- Author:
- Vaadin Ltd
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MouseEventDetailsBuilder
public MouseEventDetailsBuilder()
buildMouseEventDetails
public static MouseEventDetails buildMouseEventDetails(com.google.gwt.dom.client.NativeEvent evt)
- Construct a
MouseEventDetails
object 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 a
MouseEventDetails
object from the given event
- Parameters:
evt
- The event to use as a source for the detailsrelativeToElement
- The element whose position
MouseEventDetails.getRelativeX()
and
MouseEventDetails.getRelativeY()
are relative to.
- Returns:
- a MouseEventDetails containing information from the event
Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.