Package com.vaadin.ui

Examples of com.vaadin.ui.Window$CloseShortcut


        final RichTextArea rText = new RichTextArea();
        rText.setWidth("300px");
        rText.setHeight("300px");

        final Window subWindow = new Window("SubWindow");
        subWindow.setWidth("500px");
        subWindow.setHeight("500px");
        subWindow.setModal(true);

        final VerticalLayout wLayout = new VerticalLayout();
        subWindow.setContent(wLayout);

        wLayout.addComponent(rText);
        wLayout.addComponent(new TextField());

        Button addWindowButton = new Button("Open RichTextArea-Dialog");
View Full Code Here


        panelLayout.addComponent(createRichTextArea("InPanel"));
        getLayout().addComponent(panel);

        VerticalLayout layout = new VerticalLayout();
        layout.setMargin(true);
        Window w = new Window("SubWindow", layout);
        w.addActionHandler(actionHandler);
        layout.addComponent(createRichTextArea("InSubWindow"));
        layout.setSizeUndefined();

        getLayout().getUI().addWindow(w);
View Full Code Here

        /*
         * Finally add two windows with DragDropPane. First accept anything,
         * second has server side accept rule to allow only drops from Tree1.
         * Check the code in implementing classes.
         */
        Window acceptAnyThing = new AcceptAnythingWindow();
        Window acceptFromTree1viaServerCheck = new AcceptFromComponent(tree1);

        w.addWindow(acceptAnyThing);
        acceptAnyThing.setPositionY(450);
        acceptAnyThing.setPositionX(150);
        w.addWindow(acceptFromTree1viaServerCheck);
        acceptFromTree1viaServerCheck.setPositionY(450);
        acceptFromTree1viaServerCheck.setPositionX(450);

    }
View Full Code Here

@Theme("chameleon")
public class TextFieldTruncatesUnderscoresInModalDialogs extends AbstractTestUI {

    @Override
    protected void setup(VaadinRequest request) {
        final Window dialog = new Window();

        FormLayout formLayout = new FormLayout();
        formLayout.setSpacing(true);

        formLayout.addComponent(new Button("Disappear",
                new Button.ClickListener() {

                    @Override
                    public void buttonClick(ClickEvent event) {
                        event.getButton().setVisible(false);
                    }
                }));

        formLayout.addComponent(new TextField(null, "____pqjgy____"));

        dialog.setContent(formLayout);

        getUI().addWindow(dialog);
    }
View Full Code Here

        // setTheme("tests-tickets");
        createUI((VerticalLayout) w.getContent());
    }

    private void createUI(VerticalLayout layout) {
        w = new Window("A sub window");
        w.setSizeUndefined();
        getMainWindow().addWindow(w);

        VerticalLayout l = new VerticalLayout();
        l.setSizeFull();
View Full Code Here

public class ComboBoxSuggestionOnDetach extends TestBase {

    @Override
    protected void setup() {
        final Window popup = new Window();

        VerticalLayout layout = new VerticalLayout();
        layout.setMargin(true);
        layout.setSizeUndefined();
        popup.setContent(layout);

        ComboBox comboBox = new ComboBox("Combo box", Arrays.asList("Option 1",
                "Option 2", "Option 3"));
        comboBox.addListener(new FieldEvents.FocusListener() {
            @Override
            public void focus(FocusEvent event) {
                popup.close();
            }
        });
        layout.addComponent(comboBox);

        popup.setSizeUndefined();
        popup.center();

        getMainWindow().addWindow(popup);
    }
View Full Code Here

            public void buttonClick(ClickEvent event) {
                removeComponent(player);
            }
        }));

        player.getUI().addWindow(new Window("Testwindow"));
    }
View Full Code Here

        final CssLayout l = new CssLayout();
        l.setCaption("Windows");

        VerticalLayout layout = new VerticalLayout();
        layout.setMargin(true);
        final Window w = new Window("Normal window", layout);
        w.setWidth("280px");
        w.setHeight("180px");
        w.setPositionX(40);
        w.setPositionY(160);

        VerticalLayout layout2 = new VerticalLayout();
        layout2.setMargin(true);
        final Window w2 = new Window("Window, no resize", layout2);
        w2.setResizable(false);
        w2.setWidth("280px");
        w2.setHeight("180px");
        w2.setPositionX(350);
        w2.setPositionY(160);
        layout2.addComponent(new Label(
                "<code>Window.setResizable(false)</code>", ContentMode.HTML));

        tabs.addListener(new TabSheet.SelectedTabChangeListener() {
            @Override
View Full Code Here

public class EmptyWindow extends AbstractTestUI {

    @Override
    protected void setup(VaadinRequest request) {
        addWindow(new Window("My empty window"));
        setContent(new Label("UI"));
    }
View Full Code Here

        layout.setSizeFull();
        layout.addComponent(text);
        layout.addComponent(table);
        layout.setExpandRatio(table, 1.0f);
        Window window = new Window();
        window.setHeight("600px");
        window.setWidth("400px");
        window.setModal(true);
        window.setContent(layout);
        getUI().addWindow(window);
    }
View Full Code Here

TOP

Related Classes of com.vaadin.ui.Window$CloseShortcut

Copyright © 2018 www.massapicom. 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.