Package com.vaadin.ui

Examples of com.vaadin.ui.Window.addStyleName()


public class MoveToTop extends AbstractTestUI {

    @Override
    protected void setup(VaadinRequest request) {
        Window window = new Window("one");
        window.addStyleName("first-window");
        window.setWidth(200, Unit.PIXELS);
        window.setHeight(100, Unit.PIXELS);
        window.setPositionX(100);
        window.setPositionY(100);
        addWindow(window);
View Full Code Here


        window = new Window("two");
        window.setWidth(200, Unit.PIXELS);
        window.setHeight(100, Unit.PIXELS);
        window.setPositionX(150);
        window.setPositionY(150);
        window.addStyleName("second-window");
        addWindow(window);
    }

    @Override
    protected String getTestDescription() {
View Full Code Here

        if (caption != null) {
            window.setCaption(caption);
        }

        if (primaryStyleName != null) {
            window.addStyleName(primaryStyleName);
        }

        if (styleName != null) {
            window.addStyleName(styleName);
        }
View Full Code Here

        if (primaryStyleName != null) {
            window.addStyleName(primaryStyleName);
        }

        if (styleName != null) {
            window.addStyleName(styleName);
        }

        parent.getUI().addWindow(window);

    }
View Full Code Here

                final Window w = new Window("Saludo");

                w.setModal(true);
                w.setClosable(false);
                w.setResizable(false);
                w.addStyleName("edit-dashboard");

                getUI().addWindow(w);

                w.setContent(new VerticalLayout() {
                    /**
 
View Full Code Here

                l.setSpacing(true);
                final Window alert = new Window("Unsaved Changes", l);
                alert.setModal(true);
                alert.setResizable(false);
                alert.setDraggable(false);
                alert.addStyleName("dialog");
                alert.setClosable(false);

                Label message = new Label(
                        "You have not saved this report. Do you want to save or discard any changes you've made to this report?");
                l.addComponent(message);
View Full Code Here

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.