Examples of showNotification()


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

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

                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

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

                    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

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

        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

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

        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

Examples of org.openhab.binding.xbmc.rpc.XbmcConnector.showNotification()

      else if (property.equals("Player.Open"))
        connector.playerOpen(command.toString());
      else if (property.equals("Player.Stop"))     
        connector.playerStop();
      else if (property.equals("GUI.ShowNotification"))
        connector.showNotification("openHAB", command.toString());
      else if (property.equals("System.Shutdown") && command == OnOffType.OFF)
        connector.systemShutdown();
      else if (property.equals("System.Suspend") && command == OnOffType.OFF)
        connector.systemSuspend();
      else if (property.equals("System.Hibernate") && command == OnOffType.OFF)
View Full Code Here

Examples of org.openhab.binding.xbmc.rpc.XbmcConnector.showNotification()

        return;
      }

      // TODO: handle other updates
      if (property.equals("GUI.ShowNotification")) {
        connector.showNotification("openHAB", newState.toString());     
      } else if (property.equals("Player.Open")) {
        connector.playerOpen(newState.toString());
      } else if (property.equals("Application.SetVolume")) {
        connector.applicationSetVolume(newState.toString());
      }
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.