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

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

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

Window.show介绍

暂无

代码示例

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

@Override
  public void execute(Boolean value) {
    JcrExplorer.loginWindow.show();
    return;
  }
}

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

@Override
  public void onClick(ClickEvent event) {
    LegendEntryTimeSeries.this.styleChanger.show();
  }
});

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

/**
 * Shows window that ask to upload a file. The callback will be called with the token of the file.
 *
 * @param callback returns token of file when the file has been uploaded.
 */
public void showWindowAndUploadFile(final Callback<String, ExceptionDto> callback) {
  this.callback = callback;
  window.show();
}

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

public void onClick(ClickEvent event) {
    if (informationWindow == null) {
      createInformationWindow();
    }
    informationWindow.show();
  }
});

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

public void showPossibleIconsWindow() {
  possibleIconsWindow.show();
}

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

public void onClick(ClickEvent event) {
    Window w = new ChooseBlueprintWindow(new DataCallback<String>() {
      public void execute(String result) {
        if (result != null && !"".equals(result)) {
          //TODO: i18n
          ManagerCommandService.createNewGeodesk(result, "[New Geodesk]");
        }
      }
    });
    w.show();
  }
});

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

public void onClick(ClickEvent event) {
    DataControlsTimeSeries.this.expertsWindow.centerInPage();
    DataControlsTimeSeries.this.expertsWindow.show();
  }
});

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

public void onClick(ClickEvent event) {
    Window w = new NewLayerModelWizardWindow(new DataCallback<DynamicLayerConfiguration>() {
      public void execute(DynamicLayerConfiguration result) {
        if (result != null && !"".equals(result)) {
          Notify.info(MESSAGES.datalayersNewLayerIsBeingSaved());
          ManagerCommandService.createNewLayerModel(result);
        }
      }
    });
    w.show();
  }
});

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

public void onClick(ClickEvent event) {
    Window w = new ChooseUserAppNameWindow(new DataCallback<HashMap<String, Object>>() {
      public void execute(HashMap<String, Object> result) {
        if (result != null && result.containsKey("userApplication") && result.containsKey("public") 
            && result.containsKey("name")) {
          //TODO: i18n
          ManagerCommandService.createNewBlueprint(result.get("userApplication").toString(), 
              (Boolean) result.get("public"), result.get("name").toString());
        }
      }
    });
    w.show();
  }
});

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

private void showWindow() {
  if (window == null) {
    window = createWindow();
    if (isModalSearch()) {
      window.setIsModal(true);
      window.setShowModalMask(true);
    }
  }
  window.show();
}

代码示例来源: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/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: 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: 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 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

public void show() {
  form.clearValues();
  publicLayer.setValue(layer.getLayerModel().isPublic());
  ClientLayerInfo cli = layer.getClientLayerInfo();
  if (cli == null) {
    // If layerInfo not set (yet), copy from model.
    cli = layer.getReferencedLayerInfo();
  }
  label.setValue(cli.getLabel());
  defaultVisible.setValue(cli.isVisible());
  minScale.setValue(SensibleScaleConverter.scaleToString(cli.getMinimumScale()));
  maxScale.setValue(SensibleScaleConverter.scaleToString(cli.getMaximumScale()));
  clearWidgetTabs();
  loadWidgetTabs(layer);
  super.show();
}

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

addMixinTypeForm.setItems(mixinNodeType, addMixinTypeSubmitItem);
addMixinTypeWindow.addItem(addMixinTypeForm);
addMixinTypeWindow.show();
mixinNodeType.focusInItem();
return addMixinTypeWindow;

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

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

相关文章