code: protected void onClose(boolean reload) {
  
          if (reload) {
              Scheduler.get().scheduleDeferred(new ScheduledCommand() {
  
                  public void execute() {
  
                      String url = Window.Location.getHref();
                      m_menuHandler.leavePage(url);
  
                  }
              });
          }
      }
docs: Executed on dialog close.<p>
  @param reload <code>true</code> if the page should be reloaded