Package com.vaadin.ui

Examples of com.vaadin.ui.Notification.show()


                pos = new Button("", new ClickListener() {
                    @Override
                    public void buttonClick(ClickEvent event) {
                        notification.setPosition(Position.BOTTOM_RIGHT);
                        notification.show(Page.getCurrent());
                    }
                });
                pos.addStyleName("small");
                grid.addComponent(pos);
View Full Code Here


        if (addItem((Table) sender)) {
          Notification nota = new Notification("<b>Nota:</b>",
              "Añadido correctamente...", Type.TRAY_NOTIFICATION,
              true);
          nota.setPosition(Position.BOTTOM_LEFT);
          nota.show(UI.getCurrent().getPage());
        } else {
          Notification nota = new Notification("<b>Nota:</b><br/>",
              "Seleccione correctamente para añadir...",
              Type.WARNING_MESSAGE, true);
          nota.setPosition(Position.BOTTOM_RIGHT);
View Full Code Here

        } else {
          Notification nota = new Notification("<b>Nota:</b><br/>",
              "Seleccione correctamente para añadir...",
              Type.WARNING_MESSAGE, true);
          nota.setPosition(Position.BOTTOM_RIGHT);
          nota.show(UI.getCurrent().getPage());
        }
      } else if (delAction == action) {
        ConfirmDialog.show(((Table) sender).getUI(), "Nota:",
            "Esta seguro de eliminar el item seleccionado?",
            "Si, Eliminalo", "NO, cancelar",
View Full Code Here

                    Notification nota = new Notification(
                        "<b>Nota:</b>",
                        "Eliminado correctamente...",
                        Type.TRAY_NOTIFICATION, true);
                    nota.setPosition(Position.BOTTOM_LEFT);
                    nota.show(UI.getCurrent().getPage());
                  } else {
                    Notification nota = new Notification(
                        "<b>Nota:</b><br/>",
                        "Item no pudo ser Eliminado... <br/>"
                            + "Corrobore si información esta relacionada...",
View Full Code Here

        Notification nota = new Notification("", Type.TRAY_NOTIFICATION);
        nota.setPosition(Position.BOTTOM_LEFT);
        nota.setDescription("Refrescando contenido...");
        nota.setIcon(event.getButton().getIcon());
        nota.setDelayMsec(Notification.DELAY_NONE);
        nota.show(getUI().getPage());
      }
    });

    addComponent(btnRefresh);
View Full Code Here

                        "<b>Nota:</b><br/>",
                        "Item no pudo ser Eliminado... <br/>"
                            + "Corrobore si información esta relacionada...",
                        Type.WARNING_MESSAGE, true);
                    nota.setPosition(Position.BOTTOM_RIGHT);
                    nota.show(UI.getCurrent().getPage());
                  }

                }
              }
            });
View Full Code Here

    if (isSave) {
      Notification nota = new Notification("<b>Nota:</b>",
          "Datos grabados correctamente...", Type.TRAY_NOTIFICATION,
          true);
      nota.setPosition(Position.BOTTOM_LEFT);
      nota.show(UI.getCurrent().getPage());
    } else {
      Notification nota = new Notification("<b>Nota:</b>",
          "Cambios no pudeiron grabarse correctamente<br/>"
              + "Intente nuevamente...", Type.WARNING_MESSAGE,
          true);
View Full Code Here

      Notification nota = new Notification("<b>Nota:</b>",
          "Cambios no pudeiron grabarse correctamente<br/>"
              + "Intente nuevamente...", Type.WARNING_MESSAGE,
          true);
      nota.setPosition(Position.BOTTOM_LEFT);
      nota.show(UI.getCurrent().getPage());
    }

  }

  public static TextField deftTxt(TextField textField) {
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.