2013-09-04 11:26:10 +02:00
|
|
|
package org.gcube.portlets.user.workspace.client.view.windows;
|
|
|
|
|
|
|
|
import com.google.gwt.core.client.JavaScriptObject;
|
|
|
|
|
|
|
|
/**
|
2019-02-22 14:40:20 +01:00
|
|
|
* @author Francesco Mangiacrapa francesco.mangiacrapa{@literal @}isti.cnr.it
|
2019-02-22 12:18:03 +01:00
|
|
|
* Sep 4, 2013
|
2013-09-04 11:26:10 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
public final class NewBrowserWindow extends JavaScriptObject {
|
|
|
|
// All types that extend JavaScriptObject must have a protected,
|
|
|
|
// no-args constructor.
|
|
|
|
protected NewBrowserWindow() {
|
|
|
|
}
|
|
|
|
|
|
|
|
public static native NewBrowserWindow open(String url, String target,
|
|
|
|
String options) /*-{
|
|
|
|
return $wnd.open(url, target, options);
|
|
|
|
}-*/;
|
|
|
|
|
|
|
|
public native void close() /*-{
|
|
|
|
this.close();
|
|
|
|
}-*/;
|
|
|
|
|
|
|
|
public native void setUrl(String url) /*-{
|
|
|
|
if (this.location) {
|
|
|
|
this.location = url;
|
|
|
|
}
|
|
|
|
}-*/;
|
|
|
|
}
|