We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.terminal.gwt.client.
Class MouseEventDetails
java.lang.Object
com.vaadin.terminal.gwt.client.MouseEventDetails
All Implemented Interfaces:
- extends Object
- implements Serializable
public class MouseEventDetails
Helper class to store and transfer mouse event details.
See Also:
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:
BUTTON_MIDDLE
public static final int BUTTON_MIDDLE
See Also:
BUTTON_RIGHT
public static final int BUTTON_RIGHT
See Also:
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()
serialize
public String serialize()
deSerialize
public static MouseEventDetails deSerialize(String serializedString)
getButtonName
public String getButtonName()
getType
public Class<MouseEventDetails> getType()
isDoubleClick
public boolean isDoubleClick()