@@ -0,0 +1,1491 @@
+package com.vaadin.tests.components.button;%0A%0Aimport com.vaadin.terminal.ThemeResource;%0Aimport com.vaadin.tests.components.TestBase;%0Aimport com.vaadin.ui.Button;%0Aimport com.vaadin.ui.Component;%0Aimport com.vaadin.ui.HorizontalLayout;%0Aimport com.vaadin.ui.VerticalLayout;%0A%0Apublic class DisabledButtons extends TestBase %7B%0A%0A    private static final ThemeResource ICON = new ThemeResource(%0A            %22../runo/icons/16/ok.png%22);%0A    private String CAPTION = %22Caption%22;%0A%0A    @Override%0A    protected String getDescription() %7B%0A        return %22The disabled buttons should be identical to the enabled buttons but grayed out.%22;%0A    %7D%0A%0A    @Override%0A    protected Integer getTicketNumber() %7B%0A        return 3110;%0A    %7D%0A%0A    @Override%0A    protected void setup() %7B%0A        HorizontalLayout hl = new HorizontalLayout();%0A        hl.addComponent(createButtons(true));%0A        hl.addComponent(createButtons(false));%0A%0A        addComponent(hl);%0A%0A    %7D%0A%0A    private Component createButtons(boolean enabled) %7B%0A        VerticalLayout vl = new VerticalLayout();%0A        Button b;%0A%0A        // Button w/ text%0A        b = new Button(CAPTION);%0A        b.setEnabled(enabled);%0A        vl.addComponent(b);%0A%0A        // Button w/ text, icon%0A        b = new Button(CAPTION);%0A        b.setEnabled(enabled);%0A        b.setIcon(ICON);%0A        vl.addComponent(b);%0A%0A        // Button w/ icon%0A        b = new Button();%0A        b.setEnabled(enabled);%0A        b.setIcon(ICON);%0A        vl.addComponent(b);%0A%0A        return vl;%0A    %7D%0A%0A%7D%0A

Test case for #3110