Package com.vaadin.ui

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


                                event);
                    }
                });
        layout.setMargin(true);
        Window centered = new Window("A window with a click listener", layout);
        centered.addListener(new ClickListener() {

            @Override
            public void click(ClickEvent event) {
                WindowClickEvents.this.click("Sub window", event);
            }
View Full Code Here


        layout.setMargin(true);
        final Window window = new Window("Focus test window", layout);
        layout.setSizeUndefined();

        layout.addComponent(new TextField());
        window.addListener(new FocusListener() {
            @Override
            public void focus(FocusEvent event) {
                Notification.show("Focused window");
            }
        });
View Full Code Here

            public void focus(FocusEvent event) {
                Notification.show("Focused window");
            }
        });

        window.addListener(new BlurListener() {
            @Override
            public void blur(BlurEvent event) {
                Notification.show("Blurred window");
            }
        });
View Full Code Here

                window.close();
            }
        });
        layout.addComponent(closeButton);

        window.addListener(new CloseListener() {
            @Override
            public void windowClose(CloseEvent e) {
                log.log("Window '" + title + "' closed");
            }
        });
View Full Code Here

    window.setClosable(true);
    window.setModal(true);
    window.setSizeUndefined();
    window.setResizable(false);
   
    window.addListener(new CloseListener() {
     
      @Override
      public void windowClose(CloseEvent e) {
        modalWindow = null;
        refreshTable();
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.