From 50880a0481197f734d4457698764d409cc69dfd9 Mon Sep 17 00:00:00 2001 From: John Alhroos Date: Tue, 26 Apr 2011 13:28:07 +0000 Subject: [PATCH] Added mouse click details to CheckBox #6605 svn changeset:18469/svn branch:6.6 --- src/com/vaadin/terminal/gwt/client/ui/VCheckBox.java | 7 +++++++ 1 file changed, 7 insertions(+) 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); } -- 2.39.5