/** * 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); } }
@Override public HandlerRegistration addCloseHandler(CloseHandler<ConfirmDialog> handler) { return dialogBox.addHandler(handler, CloseEvent.getType()); }
/** Hides the message dialog */ public void hide() { dialogBox.hide(); Screen.unblockToUser(); CloseEvent.fire(ConfirmDialog.this, ConfirmDialog.this); }
public void onClose(CloseEvent<RowWidget> event) { setSelectedKey(event.getTarget().getKey(), true); }
public HandlerRegistration addCloseHandler(CloseHandler<ClosableLabel> handler) { return addHandler(handler, CloseEvent.getType()); }
@UiHandler("closeButton") void closeTab(ClickEvent clickEvent) { CloseEvent.fire(this, this); }
@Override public void onClose(CloseEvent<PopupPanel> event) { afterHide(event.isAutoClosed()); }
/** * @see * com.google.gwt.event.logical.shared.HasCloseHandlers#addCloseHandler(com.google.gwt.event.logical.shared.CloseHandler) */ public HandlerRegistration addCloseHandler(CloseHandler<CmsListItemWidget> handler) { return addHandler(handler, CloseEvent.getType()); }
public HandlerRegistration addCloseHandler(CloseHandler<PopupPanel> handler) { return addHandler(handler, CloseEvent.getType()); }
@Override public HandlerRegistration addCloseHandler(final CloseHandler<PopupPanel> handler) { return handlers.addHandler(CloseEvent.getType(), handler); }