本文整理了Java中com.vaadin.ui.Window.open()
方法的一些代码示例,展示了Window.open()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.open()
方法的具体详情如下:
包路径:com.vaadin.ui.Window
类名称: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");
内容来源于网络,如有侵权,请联系作者删除!