From: John Alhroos Date: Tue, 26 Apr 2011 13:28:07 +0000 (+0000) Subject: Added mouse click details to CheckBox #6605 X-Git-Tag: 6.7.0.beta1~273 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=50880a0481197f734d4457698764d409cc69dfd9;p=vaadin-framework.git Added mouse click details to CheckBox #6605 svn changeset:18469/svn branch:6.6 --- 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); }