@@ -0,0 +1,1745 @@
+package com.vaadin.tests.components.button;%0A%0Aimport com.vaadin.tests.components.TestBase;%0Aimport com.vaadin.ui.Button;%0Aimport com.vaadin.ui.Button.ClickEvent;%0Aimport com.vaadin.ui.Label;%0A%0Apublic class ButtonMouseDetails extends TestBase %7B%0A%0A    private Label out = new Label(%22%22, Label.CONTENT_PREFORMATTED);%0A%0A    private int clickCounter = 1;%0A%0A    @Override%0A    protected void setup() %7B%0A%0A        Button button = new Button(%22CLICK ME!%22, new Button.ClickListener() %7B%0A            @Override%0A            public void buttonClick(ClickEvent event) %7B%0A                StringBuilder str = new StringBuilder(out.getValue().toString());%0A                str.append(clickCounter + %22:%5Ct%22);%0A%0A                // Modifier keys%0A                str.append(%22ctrl=%22 + event.isCtrlKey() + %22,%5Ct%22);%0A                str.append(%22alt=%22 + event.isAltKey() + %22,%5Ct%22);%0A                str.append(%22meta=%22 + event.isMetaKey() + %22,%5Ct%22);%0A                str.append(%22shift=%22 + event.isShiftKey() + %22,%5Ct%22);%0A%0A                // Coordinates%0A                str.append(%22X=%22 + event.getRelativeX() + %22,%5Ct%22);%0A                str.append(%22Y=%22 + event.getRelativeY() + %22,%5Ct%22);%0A                str.append(%22clientX=%22 + event.getClientX() + %22,%5Ct%22);%0A                str.append(%22clientY=%22 + event.getClientY());%0A%0A                str.append(%22%5Cn%22);%0A%0A                out.setValue(str.toString());%0A                clickCounter++;%0A            %7D%0A        %7D);%0A%0A        getLayout().setSpacing(true);%0A        addComponent(button);%0A        addComponent(out);%0A    %7D%0A%0A    @Override%0A    protected String getDescription() %7B%0A        return %22Clicking a button should returns some additional information about the click%22;%0A    %7D%0A%0A    @Override%0A    protected Integer getTicketNumber() %7B%0A        return 6605;%0A    %7D%0A%0A%7D%0A

Test application for Button click mouse event #6605