Example #1
0
 /**
  * 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);
 }
Example #2
0
 private void onTitleClicked() {
   if (expanded) {
     CloseEvent.fire(this, this);
   } else {
     OpenEvent.fire(this, this);
   }
 }
Example #3
0
 @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);
 }
Example #7
0
 public void onClose(CloseEvent<RowWidget> event) {
   setSelectedKey(event.getTarget().getKey(), true);
 }
Example #8
0
 public HandlerRegistration addCloseHandler(CloseHandler<ClosableLabel> handler) {
   return addHandler(handler, CloseEvent.getType());
 }
Example #9
0
 @UiHandler("closeButton")
 void closeTab(ClickEvent clickEvent) {
   CloseEvent.fire(this, this);
 }
Example #10
0
 @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());
  }
Example #12
0
 public HandlerRegistration addCloseHandler(CloseHandler<PopupPanel> handler) {
   return addHandler(handler, CloseEvent.getType());
 }
Example #13
0
 @Override
 public HandlerRegistration addCloseHandler(final CloseHandler<PopupPanel> handler) {
   return handlers.addHandler(CloseEvent.getType(), handler);
 }