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
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)
|
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
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)
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()
Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.