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

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

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

Window.setAutoSize介绍

[英]If true, the window is resized automatically to accommodate the contents of the body, if they would otherwise require scrolling. Setter for com.smartgwt.client.widgets.Window#getAutoSize
[中]如果为true,则窗口会自动调整大小,以适应正文内容(如果它们需要滚动)。com的Setter。smartgwt。客户小部件。窗口#获取自动大小

代码示例

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

/** {@inheritDoc} */
public void onClick(ClickEvent event) {
  PrintPreferencesCanvas canvas = new PrintPreferencesCanvas(mapWidget);
  canvas.setMargin(WidgetLayout.marginSmall);
  Window window = new KeepInScreenWindow();
  window.setTitle(MESSAGES.printPrefsTitle());
  window.addItem(canvas);
  window.centerInPage();
  window.setAutoSize(true);
  window.show();
}

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

@Override
public void onClick(ClickEvent event) {
  PrintPreferencesCanvas canvas = new PrintPreferencesCanvas(mapWidget);
  canvas.setMargin(WidgetLayout.marginSmall);
  Window window = new KeepInScreenWindow();
  window.setTitle(MESSAGES.printPrefsTitle());
  window.addItem(canvas);
  window.centerInPage();
  window.setAutoSize(true);
  window.show();
}

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

public void onSelectAlternative(SelectAlternativeEvent event) {
  if (null == altWindow) {
    altGrid = new GeocoderAlternativesGrid(geocoderWidget, event.getAlternatives());
    altWindow = new Window();
    altWindow.setAutoSize(true);
    altWindow.setTitle(messages.alternativeSelectTitle());
    altWindow.setAutoSize(true);
    altWindow.setLeft(20);
    altWindow.setTop(20);
    altWindow.setCanDragReposition(true);
    altWindow.setCanDragResize(true);
    altWindow.addItem(altGrid);
    altWindow.addCloseClickHandler(new CloseClickHandler() {
      public void onCloseClick(CloseClickEvent closeClickEvent) {
        removeAltWindow();
      }
    });
    map.addChild(altWindow);
  } else {
    altGrid.update(event.getAlternatives());
  }
}
// @extract-end

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

public Window createFeatureDetailWindow(Feature feature, boolean editingAllowed) {
  Window w = new Window();
  w.setAutoSize(true);
  w.setTitle(I18nProvider.getAttribute().getAttributeWindowTitle(feature.getLabel()));
  w.setCanDragReposition(true);
  w.setCanDragResize(true);
  w.addItem(new CustomCountriesFeatureInfoCanvas(feature));
  return w;
}

代码示例来源: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.geomajas.widget/geomajas-widget-searchandfilter-gwt

window.addItem(lay);
window.centerInPage();
window.setAutoSize(true);
window.show();
window.setKeepInParentRect(true);

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

window.setWidth(300);
window.setHeight(250);
window.setAutoSize(true);
window.setTitle(i18n.createNewUser());
window.setCanDragReposition(true);

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

window.setAutoSize(true);
window.setTitle(i18n.editUserData());
window.setCanDragReposition(true);

相关文章