/** * Method that handles window closing (from UI). * * <p> * By default, windows are removed from their respective UIs and thus * visually closed on browser-side. * </p> * * <p> * To react to a window being closed (after it is closed), register a * {@link CloseListener}. * </p> */ public void close() { UI uI = getUI(); // Don't do anything if not attached to a UI if (uI != null) { // window is removed from the UI uI.removeWindow(this); } }
/** * Close this window. */ public void closeWindow() { this.ui.removeWindow(this); }
/** * Close this window. */ public void closeWindow() { this.ui.removeWindow(this); }
public void buttonClick(ClickEvent event) { UI.getCurrent().removeWindow(ServerWindow.this); } });
public void buttonClick(ClickEvent event) { UI.getCurrent().removeWindow(NewBusinessStreamWindow.this); } });
public void buttonClick(ClickEvent event) { UI.getCurrent().removeWindow(FilterWindow.this); } });
public void buttonClick(ClickEvent event) { UI.getCurrent().removeWindow(NotificationWindow.this); } });
/** * Discard the changes and close the popup. */ protected void discard() { UI.getCurrent().removeWindow(window); }
public void buttonClick(ClickEvent event) { UI.getCurrent().removeWindow(StartupControlConfigurationWindow.this); } });
public void buttonClick(ClickEvent event) { UI.getCurrent().removeWindow(NewRoleWindow.this); } });
public void buttonClick(ClickEvent event) { UI.getCurrent().removeWindow(NewPolicyWindow.this); } });
/** * Discard the changes and close the popup. */ protected void discard() { UI.getCurrent().removeWindow(window); }
@Override public void buttonClick(Button.ClickEvent event) { if (event.getButton() == okayButton) parentWindow.removeWindow(DialogWindow.this); }
public void close() { m_fieldGroup.unbind(); UI.getCurrent().removeWindow(this); } public void load(Audit audit) {
@Override public void itemClick(ItemClickEvent itemClickEvent) { flow = (Flow)itemClickEvent.getItemId(); UI.getCurrent().removeWindow(PolicyAssociationFlowSearchWindow.this); } });
@Override public void itemClick(ItemClickEvent itemClickEvent) { module = (Module)itemClickEvent.getItemId(); UI.getCurrent().removeWindow(PolicyAssociationModuleSearchWindow.this); } });
@Override public void itemClick(ItemClickEvent itemClickEvent) { businessStream = (BusinessStream)itemClickEvent.getItemId(); UI.getCurrent().removeWindow(PolicyAssociationBusinessStreamSearchWindow.this); } });
/** * Closes the window if open. */ public void close() { if (DIALOG_DEFAULT_TRANSITION_LISTENER == null || (DIALOG_DEFAULT_TRANSITION_LISTENER != null && DIALOG_DEFAULT_TRANSITION_LISTENER.close(this))) { UI.getCurrent().removeWindow(window); } }
parent.removeWindow(window);
private void toggleWindow(final ClickEvent event) { if (notificationsWindow.isAttached()) { getUI().removeWindow(notificationsWindow); return; } createUnreadMessagesLayout(); notificationsWindow.setPositionY(event.getClientY() - event.getRelativeY() + 40); getUI().addWindow(notificationsWindow); currentView.refreshView(unreadNotifications.keySet()); clear(); notificationsWindow.focus(); }