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

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

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

Window.setShowCloseButton介绍

[英]If true, show a close button in the header, which will dismiss this window by calling com.smartgwt.client.widgets.Window#addCloseClickHandler. Dynamically update com.smartgwt.client.widgets.Window#getShowCloseButton to show / hide the closeButton
[中]如果为true,则在标题中显示关闭按钮,该按钮将通过调用com关闭此窗口。smartgwt。客户小部件。窗口#添加CloseClickHandler。动态更新com。smartgwt。客户小部件。Window#getShowCloseButton可显示/隐藏closeButton

代码示例

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

/**
   * Show the window.
   */
  public void show() {
    final Window winModal = new Window();
    winModal.setWidth(500);
    winModal.setHeight(300);
    winModal.setTitle(MESSAGES.rolesWindowUnauthorizedWindowTitle());
    winModal.setShowMinimizeButton(false);
    winModal.setIsModal(true);
    winModal.setShowModalMask(true);
    winModal.centerInPage();
    winModal.setShowCloseButton(false);
    winModal.setZIndex(GdmLayout.roleSelectZindex);

    HTMLPane pane = new HTMLPane();
    pane.setContents("<br/><br/><center>" + MESSAGES.rolesWindowInsufficientRightsForDesk() + "</center>");
    winModal.addItem(pane);
    winModal.show();
  }
}

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

winModal.setShowModalMask(true);
winModal.centerInPage();
winModal.setShowCloseButton(false);
winModal.setZIndex(2000);

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

private void createWindow() {
  window = new Window();
  window.setWidth(500);
  window.setHeight(300);
  window.setShowMinimizeButton(false);
  window.setIsModal(true);
  window.setShowModalMask(true);
  window.centerInPage();
  window.setShowCloseButton(true);
  window.setZIndex(2000);
  VLayout layout = new VLayout();
  layout.setLayoutMargin(25);
  layout.setMembersMargin(10);
  fileUploadForm = new GenericUploadForm();
  button = new IButton();
  layout.setLayoutMargin(25);
  layout.addMember(fileUploadForm);
  layout.addMember(button);
  window.addItem(layout);
}

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

this.styleChanger.centerInPage();
this.styleChanger.setCanDragResize(true);
this.styleChanger.setShowCloseButton(true);

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

w.addItem(layout);
w.setShowMinimizeButton(false);
w.setShowCloseButton(false);
w.setKeepInParentRect(true);
w.setAutoCenter(true);

相关文章