Package com.vaadin.tests.components.splitpanel

Source Code of com.vaadin.tests.components.splitpanel.SplitPanelInModalWindow

package com.vaadin.tests.components.splitpanel;

import com.vaadin.server.Sizeable;
import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.HorizontalSplitPanel;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Window;

public class SplitPanelInModalWindow extends TestBase {

    @Override
    public void setup() {

        VerticalLayout vl = new VerticalLayout();
        final Window modalWindow = new Window("Modeless Window", vl);
        vl.setWidth(200, Sizeable.UNITS_PIXELS);
        vl.setHeight(200, Sizeable.UNITS_PIXELS);
        modalWindow.setModal(true); // This line causes the problem
        getMainWindow().addWindow(modalWindow);

        HorizontalSplitPanel splitPanel = new HorizontalSplitPanel();
        splitPanel.setSplitPosition(20);
        vl.addComponent(splitPanel);
    }

    @Override
    protected String getDescription() {
        return "Moving the splitter in the modal window should work as expected and not cause the application to freeze.";
    }

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

}
TOP

Related Classes of com.vaadin.tests.components.splitpanel.SplitPanelInModalWindow

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.