summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Alhroos <john.ahlroos@itmill.com>2011-04-26 13:28:07 +0000
committerJohn Alhroos <john.ahlroos@itmill.com>2011-04-26 13:28:07 +0000
commit50880a0481197f734d4457698764d409cc69dfd9 (patch)
tree327b2221e30eec3c325aa957ea173ac11823f742 /src
parentdb9ad1894af8c32cc1e864e0acd4f700d7a9f15c (diff)
downloadvaadin-framework-50880a0481197f734d4457698764d409cc69dfd9.tar.gz
vaadin-framework-50880a0481197f734d4457698764d409cc69dfd9.zip
Added mouse click details to CheckBox #6605
svn changeset:18469/svn branch:6.6
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VCheckBox.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VCheckBox.java b/src/com/vaadin/terminal/gwt/client/ui/VCheckBox.java
index 6937ff7f59..ebdc0e547c 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/VCheckBox.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/VCheckBox.java
@@ -22,6 +22,7 @@ import com.vaadin.terminal.gwt.client.ApplicationConnection;
import com.vaadin.terminal.gwt.client.BrowserInfo;
import com.vaadin.terminal.gwt.client.EventHelper;
import com.vaadin.terminal.gwt.client.EventId;
+import com.vaadin.terminal.gwt.client.MouseEventDetails;
import com.vaadin.terminal.gwt.client.Paintable;
import com.vaadin.terminal.gwt.client.UIDL;
import com.vaadin.terminal.gwt.client.Util;
@@ -53,6 +54,12 @@ public class VCheckBox extends com.google.gwt.user.client.ui.CheckBox implements
if (id == null || client == null || !isEnabled()) {
return;
}
+
+ // Add mouse details
+ MouseEventDetails details = new MouseEventDetails(
+ event.getNativeEvent(), getElement());
+ client.updateVariable(id, "mousedetails", details.serialize(),
+ false);
client.updateVariable(id, "state", getValue(), immediate);
}