Package com.vaadin.tests.components.select

Source Code of com.vaadin.tests.components.select.StylingPopupOpener

package com.vaadin.tests.components.select;

import com.vaadin.tests.components.TestBase;
import com.vaadin.tests.util.TestUtils;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Select;

public class StylingPopupOpener extends TestBase {

    @Override
    protected void setup() {
        TestUtils
                .injectCSS(
                        getMainWindow(),
                        ".v-filterselect-mystyle .v-filterselect-button { width: 50px; background-color: red; } ");

        final Select select = new Select();
        addComponent(select);

        addComponent(new Button("Update style", new Button.ClickListener() {
            @Override
            public void buttonClick(ClickEvent event) {
                select.setStyleName("mystyle");
            }
        }));
    }

    @Override
    protected String getDescription() {
        return "VFilterSelect popup opener width is not updated when the style or theme changes";
    }

    @Override
    protected Integer getTicketNumber() {
        return 8801;
    }

}
TOP

Related Classes of com.vaadin.tests.components.select.StylingPopupOpener

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.