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

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

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

Window.setWidth介绍

暂无

代码示例

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

private Window createWindow(String subtitle) {
  Window w = new Window();
  w.setWidth(windowWidth);
  w.setHeight(windowHeight);
  w.setTitle(I18nProvider.getAttribute().getAttributeWindowTitle(subtitle));
  w.setCanDragReposition(true);
  w.setCanDragResize(true);
  w.setAutoCenter(true);
  w.setKeepInParentRect(true);
  return w;
}

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

public void onClick(ClickEvent event) {
    Window window = new Window();
    window.setTitle(MESSAGES.geodeskLabel() + ": " + rollOverRecord.getAttribute(FLD_NAME));
    window.setAutoCenter(true);
    window.setWidth("90%");
    window.setHeight("90%");
    window.setSrc(GeodeskUrlUtil.createPreviewUrl(rollOverRecord.getAttribute(FLD_GEODESKID)));
    window.setContentsType("page");
    window.show();
  }
});

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

private void getToasterWindow() {
  if (this.toasterWindow == null) {
    this.toasterWindow = new Window();
    this.layout = new VLayout();
    this.layout.setTabIndex( -1);
    this.toasterWindow.setParentElement(this.parentElem);
    this.toasterWindow.setAnimateFadeTime(fadeout);
    this.toasterWindow.setHeight(this.height);
    this.toasterWindow.setWidth(this.width);
    this.toasterWindow.setTitle(this.title);
    this.toasterWindow.setAutoSize(new Boolean(false));
    this.toasterWindow.setOverflow(Overflow.AUTO);
    this.left = this.toasterWindow.getParentElement().getWidth().intValue() - this.width - 10;
    this.top = this.toasterWindow.getParentElement().getHeight().intValue() - this.height - 30;
    this.toasterWindow.setLeft(this.left);
    this.toasterWindow.setTop(this.top);
    this.toasterWindow.setCanDragResize(true);
    this.toasterWindow.setShowMaximizeButton(true);
    this.toasterWindow.setID(this.id);
    this.toasterWindow.addItem(this.layout);
    this.toasterWindow.addCloseClickHandler(new CloseClickHandler() {
      public void onCloseClick(CloseClickEvent event) {
        hide();
      }
    });
  }
}

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

private void createInformationWindow() {
  informationWindow = new Window();
  informationWindow.setTitle(LegendEntryTimeSeries.this.getTimeSeries().getTimeSeriesLabel());
  informationWindow.setWidth(450);
  informationWindow.setHeight(500);
  informationWindow.setShowMinimizeButton(false);
  informationWindow.centerInPage();
  HTMLPane htmlPane = new HTMLPane();
  htmlPane.setContentsURL(LegendEntryTimeSeries.this
      .getTimeSeries().getMetadataUrl()); 
  htmlPane.setContentsType(ContentsType.PAGE);
  informationWindow.addItem(htmlPane);
}

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

public void onClick(ClickEvent event) {
    com.smartgwt.client.widgets.Window w = new com.smartgwt.client.widgets.Window();
    w.setTitle(i18n.Impressum());
    w.setWidth(450);
    w.setHeight(460);
    w.centerInPage();
    w.setIsModal(true);
    VLayout layout = new VLayout();
    HTMLPane pane = new HTMLPane();
    pane.setContentsURL(i18n.imprintPath());
    layout.setStyleName("n52_sensorweb_client_imprint_content");
    layout.addMember(pane);
    w.addItem(layout);
    w.show();
  }
});

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

private Window createRemoteWindow(String title, String url) {
  Window remoteWindow = new Window();
  HTMLPane htmlPane = new HTMLPane();
  htmlPane.setContentsURL(url);
  htmlPane.setContentsType(ContentsType.PAGE);
  remoteWindow.addItem(htmlPane);
  remoteWindow.setTitle(title);
  remoteWindow.setShowMaximizeButton(true);
  remoteWindow.setCanDragReposition(true);
  remoteWindow.setCanDragResize(true);
  remoteWindow.setHeight("40%");
  remoteWindow.setWidth("40%");
  remoteWindow.setAutoCenter(true);
  remoteWindow.setShowResizeBar(true);
  remoteWindow.setDefaultResizeBars(LayoutResizeBarPolicy.MARKED);
  remoteWindow.show();
  return remoteWindow;
}

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

private Window createBinaryImgWindow(String title, String path, String mimeType) {
  Window binaryWindow = new Window();
  Img img = new Img(BINARY_SERVLET_PATH + path);
  img.setImageType(ImageStyle.STRETCH);
  img.setHeight100();
  img.setWidth100();
  binaryWindow.addItem(img);
  binaryWindow.setTitle(title);
  binaryWindow.setShowMaximizeButton(true);
  binaryWindow.setCanDragReposition(true);
  binaryWindow.setCanDragResize(true);
  binaryWindow.setHeight("40%");
  binaryWindow.setWidth("40%");
  binaryWindow.setAutoCenter(true);
  binaryWindow.setShowResizeBar(true);
  //binaryWindow.setDefaultResizeBars(LayoutResizeBarPolicy.MARKED);
  binaryWindow.show();
  return binaryWindow;
}

代码示例来源: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.setWidth(500);
winModal.setHeight(300);
winModal.setTitle(MESSAGES.rolesWindowaskRoleWindowTitle());

代码示例来源: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: com.github.livesense/org.liveSense.jcr.explorer

addMixinTypeWindow.setCanDragResize(true);
addMixinTypeWindow.setHeight(120);
addMixinTypeWindow.setWidth(400);
addMixinTypeWindow.setTop("30%");
addMixinTypeWindow.setLeft("35%");

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

private Canvas createStyleToolsWindow() {
  this.styleChanger = new Window();
  this.styleChanger.setShowModalMask(true);
  this.styleChanger.setWidth(250);
  this.styleChanger.setHeight(280);
  this.styleChanger.setIsModal(true);

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

window.setWidth(200);

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

w.setPadding(5);
w.setHeight(100);
w.setWidth(300);
w.addItem(layout);
w.setShowMinimizeButton(false);

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

changeNodeTypeWindow.setCanDragResize(false);
changeNodeTypeWindow.setAutoCenter(true);
changeNodeTypeWindow.setWidth(500);
changeNodeTypeWindow.setHeight(400);
changeNodeTypeWindow.setAlign(VerticalAlignment.BOTTOM);

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

addNewNodeWindow.setCanDragResize(true);
addNewNodeWindow.setHeight(200);
addNewNodeWindow.setWidth(550);
addNewNodeWindow.setTop("30%");
addNewNodeWindow.setLeft("35%");

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

final Window addWindow = new DockableWindow();
addWindow.setTitle(messages.favouritesControllerAddTitle());
addWindow.setWidth(310);
addWindow.setHeight(145);
addWindow.setAutoCenter(true);

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

window.setWidth(300);
window.setHeight(250);
window.setAutoSize(true);

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

this.expertsWindow.setIsModal(true);
this.expertsWindow.setWidth(290);
this.expertsWindow.setHeight(130);
this.expertsWindow.setCanDragResize(true);

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

editPropertyWindow.setCanDragResize(true);
editPropertyWindow.setHeight(600);
editPropertyWindow.setWidth(800);
editPropertyWindow.setAutoCenter(true);

相关文章