本文整理了Java中elemental.html.Window
类的一些代码示例,展示了Window
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window
类的具体详情如下:
包路径:elemental.html.Window
类名称:Window
暂无
代码示例来源:origin: de.knightsoft-net/gwtp-spring-integration-client
private static String syncRestNativeCall(final String purl) {
final XMLHttpRequest xmlHttp = Browser.getWindow().newXMLHttpRequest();
xmlHttp.open("GET", purl, false); // false for synchronous request
xmlHttp.send();
return xmlHttp.getResponseText();
}
}
代码示例来源:origin: cromwellian/angulargwt
public void f() {
Browser.getWindow().getConsole().info("loading angularjs succeeded.");
injectModules();
}
});
代码示例来源:origin: org.eclipse.che.core/che-core-ide-app
/** Turn off Super DevMode for the current IDE GWT app. */
void off() {
Window window = Browser.getWindow();
Storage sessionStorage = window.getSessionStorage();
for (int i = 0; i < sessionStorage.getLength(); i++) {
String key = sessionStorage.key(i);
if (key.equals("__gwtDevModeHook:" + IDE_GWT_APP_SHORT_NAME)) {
sessionStorage.removeItem(key);
break;
}
}
window.getLocation().reload();
}
代码示例来源:origin: org.eclipse.che.core/che-core-ide-ui
final int winX = window.getInnerWidth();
final int winY = window.getInnerHeight();
ClientRect widgetRect = this.popupElement.getBoundingClientRect();
if (widgetRect.getBottom() > winY) {
代码示例来源:origin: org.eclipse.che.core/che-core-ide-app
private void addHandlers() {
cleanUpHandlers();
partStackStateEventRemover = eventBus.addHandler(PartStackStateChangedEvent.TYPE, this);
blurEventRemover = getWindow().addEventListener(BLUR, evt -> appStateManager.persistState());
windowEventsRemover = eventBus.addHandler(WindowActionEvent.TYPE, this);
workspaceStoppingEventRemover = eventBus.addHandler(WorkspaceStoppingEvent.TYPE, this);
}
代码示例来源:origin: de.knightsoft-net/gwt-bean-validators-restygwt-jaxrs
private static String syncRestNativeCall(final String purl) {
final XMLHttpRequest xmlHttp = Browser.getWindow().newXMLHttpRequest();
xmlHttp.open("GET", purl, false); // false for synchronous request
xmlHttp.send();
return xmlHttp.getResponseText();
}
}
代码示例来源:origin: cromwellian/angulargwt
public void f() {
Browser.getWindow().getConsole().warn("loading angularjs failed.");
}
});
代码示例来源:origin: de.knightsoft-net/gwtp-spring-integration
private static String syncRestNativeCall(final String purl) {
final XMLHttpRequest xmlHttp = Browser.getWindow().newXMLHttpRequest();
xmlHttp.open("GET", purl, false); // false for synchronous request
xmlHttp.send();
return xmlHttp.getResponseText();
}
}
代码示例来源:origin: cromwellian/angulargwt
private void loadAngular() {
if(!isInjected()) {
Promise loadAngular = new ScriptLoader();
loadAngular.done(new Function() {
public void f() {
Browser.getWindow().getConsole().info("loading angularjs succeeded.");
injectModules();
}
});
loadAngular.fail(new Function() {
public void f() {
Browser.getWindow().getConsole().warn("loading angularjs failed.");
}
});
} else {
Browser.getWindow().getConsole().info("angularjs already loaded.");
injectModules();
}
}
代码示例来源:origin: org.jboss.as/jboss-as-console-dmr
XMLHttpRequest xhr = Browser.getWindow().newXMLHttpRequest();
内容来源于网络,如有侵权,请联系作者删除!