Package com.vaadin.tests.components.window

Source Code of com.vaadin.tests.components.window.FullSizedWindow

package com.vaadin.tests.components.window;

import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.NativeButton;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Window;

public class FullSizedWindow extends TestBase {

    @Override
    protected void setup() {
        VerticalLayout layout = new VerticalLayout();
        layout.setMargin(true);
        Window w = new Window("full sized window", layout);
        w.setSizeFull();
        layout.setSizeFull();
        NativeButton b = new NativeButton("A large button");
        b.setSizeFull();
        layout.addComponent(b);
        getMainWindow().addWindow(w);
        setTheme("runo");
    }

    @Override
    protected String getDescription() {
        return "A 100%x100% sub window should not produce scrollbars in the main view or in the sub window. The button inside the sub window is 100%x100%, as is the layout";
    }

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

}
TOP

Related Classes of com.vaadin.tests.components.window.FullSizedWindow

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.