]> source.dussan.org Git - vaadin-framework.git/commitdiff
Added mouse click details to CheckBox #6605
authorJohn Alhroos <john.ahlroos@itmill.com>
Tue, 26 Apr 2011 13:28:07 +0000 (13:28 +0000)
committerJohn Alhroos <john.ahlroos@itmill.com>
Tue, 26 Apr 2011 13:28:07 +0000 (13:28 +0000)
svn changeset:18469/svn branch:6.6

src/com/vaadin/terminal/gwt/client/ui/VCheckBox.java

index 6937ff7f59ac7bd3f5f5900c6a246ba27f97f3f6..ebdc0e547c0faaa317fd24cfeb627188036bafb1 100644 (file)
@@ -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);
             }