Пример #1
0
  public void showNotification() {
    if (visible) {
      hideNotficiation();

    } else {
      this.setDelayMsec(15000);
      visible = true;
      this.setStyleName(defaultStyleName);
      notification.show(Page.getCurrent());
    }
  }
Пример #2
0
 public void hideNotficiation() {
   notification.setDelayMsec(DELAY_NONE);
   notification.setStyleName("hideNotification");
   visible = true;
 }