1
我想通过单击按钮打开外部链接。我在按钮的操作方法中有以下代码:以编程方式在古巴应用程序中打开外部链接
((com.vaadin.ui.Button) myCubaButton.unwrap(com.vaadin.ui.Button)).UI.page.open('https://www.google.de', '_blank')
有没有更古巴的方式来打开外部链接?
我想通过单击按钮打开外部链接。我在按钮的操作方法中有以下代码:以编程方式在古巴应用程序中打开外部链接
((com.vaadin.ui.Button) myCubaButton.unwrap(com.vaadin.ui.Button)).UI.page.open('https://www.google.de', '_blank')
有没有更古巴的方式来打开外部链接?
您可以使用showWebPage()AbstractWindow /窗口管理器的方法:
showWebPage("https://google.com", ParamsMap.of("target", "_blank"));