aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/terminal/gwt/client/MouseEventDetails.java
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-03-01 18:12:34 +0200
committerArtur Signell <artur@vaadin.com>2012-03-01 18:14:33 +0200
commit4bd6cf0110a171c58815b0845be396ed6e53b1f4 (patch)
tree926f4051a85c8530872e0746532e8221b2cdcf34 /src/com/vaadin/terminal/gwt/client/MouseEventDetails.java
parent5e101f45e021d5fc207cd6aeb3bd0336c421a59c (diff)
downloadvaadin-framework-4bd6cf0110a171c58815b0845be396ed6e53b1f4.tar.gz
vaadin-framework-4bd6cf0110a171c58815b0845be396ed6e53b1f4.zip
#8444 Generate serializers for client to server RPC
Diffstat (limited to 'src/com/vaadin/terminal/gwt/client/MouseEventDetails.java')
-rw-r--r--src/com/vaadin/terminal/gwt/client/MouseEventDetails.java50
1 files changed, 45 insertions, 5 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/MouseEventDetails.java b/src/com/vaadin/terminal/gwt/client/MouseEventDetails.java
index 260dfa6fff..57b83701fd 100644
--- a/src/com/vaadin/terminal/gwt/client/MouseEventDetails.java
+++ b/src/com/vaadin/terminal/gwt/client/MouseEventDetails.java
@@ -66,6 +66,49 @@ public class MouseEventDetails implements Serializable {
return relativeY;
}
+ public void setButton(int button) {
+ this.button = button;
+ }
+
+ public void setClientX(int clientX) {
+ this.clientX = clientX;
+ }
+
+ public void setClientY(int clientY) {
+ this.clientY = clientY;
+ }
+
+ public void setAltKey(boolean altKey) {
+ this.altKey = altKey;
+ }
+
+ public void setCtrlKey(boolean ctrlKey) {
+ this.ctrlKey = ctrlKey;
+ }
+
+ public void setMetaKey(boolean metaKey) {
+ this.metaKey = metaKey;
+ }
+
+ public void setShiftKey(boolean shiftKey) {
+ this.shiftKey = shiftKey;
+ }
+
+ public void setType(int type) {
+ this.type = type;
+ }
+
+ public void setRelativeX(int relativeX) {
+ this.relativeX = relativeX;
+ }
+
+ public void setRelativeY(int relativeY) {
+ this.relativeY = relativeY;
+ }
+
+ public MouseEventDetails() {
+ }
+
public MouseEventDetails(NativeEvent evt) {
this(evt, null);
}
@@ -85,9 +128,6 @@ public class MouseEventDetails implements Serializable {
}
}
- private MouseEventDetails() {
- }
-
@Override
public String toString() {
return serialize();
@@ -128,8 +168,8 @@ public class MouseEventDetails implements Serializable {
return "";
}
- public Class<MouseEventDetails> getType() {
- return MouseEventDetails.class;
+ public int getType() {
+ return type;
}
public boolean isDoubleClick() {