com.vaadin.terminal.gwt.client.


Class MouseEventDetails

java.lang.Object
  com.vaadin.terminal.gwt.client.MouseEventDetails

All Implemented Interfaces:

Serializable

public class MouseEventDetails
extends Object
implements Serializable

Helper class to store and transfer mouse event details.

See Also:

Serialized Form

Field Summary
static int BUTTON_LEFT
           
static int BUTTON_MIDDLE
           
static int BUTTON_RIGHT
           
 
Constructor Summary
MouseEventDetails(com.google.gwt.dom.client.NativeEvent evt)
           
MouseEventDetails(com.google.gwt.dom.client.NativeEvent evt, com.google.gwt.dom.client.Element relativeToElement)
           
 
Method Summary
static MouseEventDetails deSerialize(String serializedString)
           
 int getButton()
           
 String getButtonName()
           
 int getClientX()
           
 int getClientY()
           
 int getRelativeX()
           
 int getRelativeY()
           
 Class<MouseEventDetails> getType()
           
 boolean isAltKey()
           
 boolean isCtrlKey()
           
 boolean isDoubleClick()
           
 boolean isMetaKey()
           
 boolean isShiftKey()
           
 String serialize()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BUTTON_LEFT

public static final int BUTTON_LEFT

See Also:

Constant Field Values

BUTTON_MIDDLE

public static final int BUTTON_MIDDLE

See Also:

Constant Field Values

BUTTON_RIGHT

public static final int BUTTON_RIGHT

See Also:

Constant Field Values

Constructor Detail

MouseEventDetails

public MouseEventDetails(com.google.gwt.dom.client.NativeEvent evt)

MouseEventDetails

public MouseEventDetails(com.google.gwt.dom.client.NativeEvent evt,
                         com.google.gwt.dom.client.Element relativeToElement)
Method Detail

getButton

public int getButton()

getClientX

public int getClientX()

getClientY

public int getClientY()

isAltKey

public boolean isAltKey()

isCtrlKey

public boolean isCtrlKey()

isMetaKey

public boolean isMetaKey()

isShiftKey

public boolean isShiftKey()

getRelativeX

public int getRelativeX()

getRelativeY

public int getRelativeY()

toString

public String toString()

Overrides:
toString in class Object

serialize

public String serialize()

deSerialize

public static MouseEventDetails deSerialize(String serializedString)

getButtonName

public String getButtonName()

getType

public Class<MouseEventDetails> getType()

isDoubleClick

public boolean isDoubleClick()