com.vaadin.ui.Window.open()方法的使用及代码示例

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

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

Window.open介绍

暂无

代码示例

代码示例来源:origin: org.activiti/activiti-explorer

protected void showModeler() throws MalformedURLException {
  URL explorerURL = ExplorerApp.get().getURL();
  URL url = new URL(explorerURL.getProtocol(), explorerURL.getHost(), explorerURL.getPort(),
      explorerURL.getPath().replace("/ui",  "") + "modeler.html?modelId=" + model.getId());
 ExplorerApp.get().getMainWindow().open(new ExternalResource(url));
}

代码示例来源:origin: org.aperteworkflow/base-widgets

@Override
protected void showValidationErrorsOrSave(final WidgetContextSupport support, final Map<ProcessToolDataWidget, Collection<String>> validationErrors) {
  if(url.matches("#\\{.*\\}")){
    String urlKey = url.replaceAll("#\\{(.*)\\}", "$1");
    ProcessInstanceAttribute attr = task.getProcessInstance().findAttributeByKey(urlKey);
    if(attr != null)
      url = ((ProcessInstanceSimpleAttribute)attr).getValue();
  }
  getApplication().getMainWindow().open(new ExternalResource(url), "_new");
}

代码示例来源:origin: org.activiti/activiti-explorer

ExplorerApp.get().getMainWindow().open(stream);

代码示例来源:origin: org.activiti/activiti-explorer

URL url = new URL(explorerURL.getProtocol(), explorerURL.getHost(), explorerURL.getPort(),
         explorerURL.getPath().replace("/ui", "") + "modeler.html?modelId=" + modelData.getId());
ExplorerApp.get().getMainWindow().open(new ExternalResource(url));

代码示例来源:origin: org.activiti/activiti-explorer

URL url = new URL(explorerURL.getProtocol(), explorerURL.getHost(), explorerURL.getPort(),
    explorerURL.getPath().replace("/ui", "") + "modeler.html?modelId=" + modelData.getId());
ExplorerApp.get().getMainWindow().open(new ExternalResource(url));

代码示例来源:origin: org.aperteworkflow/base-widgets

@Override
  public void buttonClick(ClickEvent event) {
    if (instanceAttachment != null && instanceAttachment.getData() != null) {
      StreamResource.StreamSource source = new StreamResource.StreamSource() {
        @Override
        public InputStream getStream() {
          return new ByteArrayInputStream(instanceAttachment.getData());
        }
      };
      StreamResource resource = new StreamResource(source, instanceAttachment.getFileName(), getApplication());
      resource.setMIMEType(instanceAttachment.getMimeType());
      getApplication().getMainWindow().open(resource, "_new");
    }
  }
});

代码示例来源:origin: org.aperteworkflow/cmis-widget

getApplication().getMainWindow().open(resource, "_blank");

相关文章