public void showNotification() { if (visible) { hideNotficiation(); } else { this.setDelayMsec(15000); visible = true; this.setStyleName(defaultStyleName); notification.show(Page.getCurrent()); } }