本文整理汇总了Java中com.google.gwt.user.client.Window.open方法的典型用法代码示例。如果您正苦于以下问题:Java Window.open方法的具体用法?Java Window.open怎么用?Java Window.open使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.google.gwt.user.client.Window
的用法示例。
在下文中一共展示了Window.open方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createDownloadData
import com.google.gwt.user.client.Window; //导入方法依赖的package包/类
/**
* Create DownloadDataItem
* @param com
* @return DownloadDataItem
*/
public static MenuItem createDownloadData(HasRightMouseUpMenu com) {
Command command = new MenuItemCommand(com) {
@Override
public void execute() {
DatasetWidget widget = (DatasetWidget) this.component;
widget.getContextMenu().hide();
OutNodeShape shape = widget.getOutNodeShapes().get(0);
String filename = shape.getAbsolutePath() + "/" + shape.getFileId();
String url = GWT.getModuleBaseURL().split("EMLStudio")[0]
+ "EMLStudioMonitor/filedownload?filename=" + filename;
Window.open(url, "_blank", "status=0,toolbar=0,menubar=0,location=0");
}
};
MenuItem item = new MenuItem("Download", command);
return item;
}
示例2: createApplicationListener
import com.google.gwt.user.client.Window; //导入方法依赖的package包/类
@Override
public ApplicationListener createApplicationListener() {
instance = this;
setLogLevel(LOG_NONE);
setLoadingListener(new LoadingListener() {
@Override
public void beforeSetup() {
}
@Override
public void afterSetup() {
scaleCanvas();
setupResizeHook();
}
});
Net.setClientProvider(new WebsocketClient());
Mindustry.platforms = new PlatformFunction(){
DateTimeFormat format = DateTimeFormat.getFormat("EEE, dd MMM yyyy HH:mm:ss");
@Override
public String format(Date date){
return format.format(date);
}
@Override
public String format(int number){
return NumberFormat.getDecimalFormat().format(number);
}
@Override
public void openLink(String link){
Window.open(link, "_blank", "");
}
};
return new Mindustry();
}
示例3: processLink
import com.google.gwt.user.client.Window; //导入方法依赖的package包/类
protected void processLink() {
if (locked) {
return;
}
if (itemIndex != -1) {
flowRequestInvoker.invokeRequest(new FlowRequest.NavigateGotoItem(itemIndex));
} else if (url != null) {
Window.open(url, "_blank", "");
}
}
示例4: execute
import com.google.gwt.user.client.Window; //导入方法依赖的package包/类
@Override
public void execute() {
Window.open(url, WINDOW_OPEN_LOCATION, WINDOW_OPEN_FEATURES);
}
示例5: open
import com.google.gwt.user.client.Window; //导入方法依赖的package包/类
public void open(String path) {
Window.open(path, "_blank", "");
}
示例6: onClick
import com.google.gwt.user.client.Window; //导入方法依赖的package包/类
@Override
public void onClick(ClickEvent clickEvent) {
Window.open(url, WINDOW_OPEN_LOCATION, WINDOW_OPEN_FEATURES);
}