Package com.vaadin.ui

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


                win.center();
                win.setClosable(false);
                getMainWindow().addWindow(win);
                layout.addComponent(new Label("SPACE notifies, ESC closes."));

                win.addActionHandler(new Action.Handler() {

                    ShortcutAction esc = new ShortcutAction("Close",
                            ShortcutAction.KeyCode.ESCAPE, null);
                    ShortcutAction spc = new ShortcutAction("Space",
                            ShortcutAction.KeyCode.SPACEBAR, null);
View Full Code Here


            public void blur(BlurEvent event) {
                Notification.show("Blurred window");
            }
        });

        window.addActionHandler(new Handler() {

            private Action[] s = new Action[] { new ShortcutAction("^Save") };

            @Override
            public Action[] getActions(Object target, Object sender) {
View Full Code Here

        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

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.