/** * Hides the popup and detaches it from the page. This has no effect if it is not currently * showing. * * @param autoClosed the value that will be passed to {@link CloseHandler#onClose(CloseEvent)} * when the popup is closed */ public void hide(boolean autoClosed) { if (!isShowing()) { return; } resizeAnimation.setState(false, false); CloseEvent.fire(this, this, autoClosed); }
private void onTitleClicked() { if (expanded) { CloseEvent.fire(this, this); } else { OpenEvent.fire(this, this); } }
@Override public void hide() { if (shown) { getRootPanel().remove(this); shown = false; CloseEvent.fire(this, null); } }
/** * Sets the additional info visible if present. * * <p> * * @param visible <code>true</code> to show, <code>false</code> to hide */ public void setAdditionalInfoVisible(boolean visible) { if (m_openClose == null) { return; } if (visible) { addStyleName(CmsListItemWidget.OPENCLASS); m_openClose.setDown(true); OpenEvent.fire(this, this); } else { removeStyleName(CmsListItemWidget.OPENCLASS); m_openClose.setDown(false); CloseEvent.fire(this, this); } }
/** Hides the message dialog */ public void hide() { dialogBox.hide(); Screen.unblockToUser(); CloseEvent.fire(ConfirmDialog.this, ConfirmDialog.this); }
@UiHandler("closeButton") void closeTab(ClickEvent clickEvent) { CloseEvent.fire(this, this); }