Package com.vaadin.ui

Examples of com.vaadin.ui.LegacyWindow.showNotification()


        w.addComponent(new Label("It has also been redirected to " + w.getURL()
                + " to support reloading"));
        w.addComponent(new Button("button", new ClickListener() {
            @Override
            public void buttonClick(ClickEvent event) {
                w.showNotification("Button clicked");
                w.addComponent(new Label("clicked"));
            }
        }));
        return w;
    }
View Full Code Here


                ByteArrayOutputStream buffer = new ByteArrayOutputStream();
                try {
                    ObjectOutputStream oos = new ObjectOutputStream(buffer);
                    long t = System.currentTimeMillis();
                    oos.writeObject(getContext());
                    w.showNotification("ApplicationContext serialized ("
                            + buffer.size() + "bytes) in "
                            + (System.currentTimeMillis() - t) + "ms");
                } catch (IOException e) {
                    e.printStackTrace();
                    w.showNotification("ApplicationContext serialization failed - see console for stacktrace");
View Full Code Here

                    w.showNotification("ApplicationContext serialized ("
                            + buffer.size() + "bytes) in "
                            + (System.currentTimeMillis() - t) + "ms");
                } catch (IOException e) {
                    e.printStackTrace();
                    w.showNotification("ApplicationContext serialization failed - see console for stacktrace");
                }

            }
        });
    }
View Full Code Here

        mainWin.addComponent(new Button("Show state of the address object",
                new Button.ClickListener() {

                    @Override
                    public void buttonClick(ClickEvent event) {
                        mainWin.showNotification(address.toString());
                    }
                }));
    }

    /** Address pojo. */
 
View Full Code Here

        mainWin.addComponent(new Button("Validate integer",
                new Button.ClickListener() {
                    @Override
                    public void buttonClick(
                            com.vaadin.ui.Button.ClickEvent event) {
                        mainWin.showNotification("The field is "
                                + (tx.isValid() ? "" : "not ") + "valid");
                    }
                }));
        TextField caption = new TextField("Caption",
                new MethodProperty<String>(tx, "caption"));
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.