com.vaadin.terminal.gwt.client
Class MouseEventDetailsBuilder

java.lang.Object
  extended by 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

Constructor Summary
MouseEventDetailsBuilder()
           
 
Method Summary
static MouseEventDetails buildMouseEventDetails(com.google.gwt.dom.client.NativeEvent evt)
          Construct a MouseEventDetails object from the given event
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MouseEventDetailsBuilder

public MouseEventDetailsBuilder()
Method Detail

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 details
relativeToElement - 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.