com.smartgwt.client.widgets.Window.destroy()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(127)

本文整理了Java中com.smartgwt.client.widgets.Window.destroy()方法的一些代码示例,展示了Window.destroy()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.destroy()方法的具体详情如下:
包路径:com.smartgwt.client.widgets.Window
类名称:Window
方法名:destroy

Window.destroy介绍

暂无

代码示例

代码示例来源:origin: org.geomajas.widget/geomajas-widget-searchandfilter-gwt

private void destroyWindow() {
  if (window != null) {
    window.destroy();
    window = null;
  }
}

代码示例来源:origin: org.geomajas.plugin/geomajas-plugin-geocoder-gwt

private void removeAltWindow() {
  if (null != altWindow) {
    altWindow.destroy();
    altWindow = null;
  }
}

代码示例来源:origin: org.geomajas.widget/geomajas-widget-searchandfilter-gwt

public void onClick(ClickEvent event) {
    addWindow.destroy();
  }
});

代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt

@Override
public void destroy() {
  if (styleHelper != null) {
    styleHelper.destroy();
  }
  super.destroy();
}

代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt

public void onClick(com.smartgwt.client.widgets.events.ClickEvent event) {
    callback.onTokenChanged(role.getKey(), role.getValue());
    winModal.destroy();
  }
});

代码示例来源:origin: com.github.livesense/org.liveSense.jcr.explorer

@Override
  public void onCloseClick(CloseClickEvent event) {  
    //service call to remove sessionId temp direcotry
    JcrExplorer.service.addNewNode("", "", "", null, "", true, new AsyncCallback<String>() {
      @Override
      public void onSuccess(String result) {
      }
      @Override
      public void onFailure(Throwable caught) {
      }
    });
    addNewNodeWindow.destroy();
  }  
});

代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui

public void onClick(ClickEvent event) {
        if (form.validate(false)) {
          String userName = (String) userNameItem.getValue();
          String name = (String) nameItem.getValue();
//                    String password = (String) passwordItem.getValue();
          String email = (String) emailItem.getValue();
          UserRole role;

          String roleString = (String) roleItem.getValue();
          if (roleString.equals(UserRole.ADMIN.toString())) {
            role = UserRole.ADMIN;
          } else {
            role = UserRole.USER;
          }

          // create new User
          UserDTO user = new UserDTO(Integer.valueOf(EditUserWindow.record.getId()), userName, name, null, email, role, new Date());
          user.setActivated(true);
          EventBus.getMainEventBus().fireEvent(new UpdateUserEvent(currentSession(), user));
          EditUserWindow.window.destroy();
        }
      }
    });

相关文章