gpt4 book ai didi

elemental2.dom.Window类的使用及代码示例

转载 作者:知者 更新时间:2024-03-27 07:13:05 28 4
gpt4 key购买 nike

本文整理了Java中elemental2.dom.Window类的一些代码示例,展示了Window类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window类的具体详情如下:
包路径:elemental2.dom.Window
类名称:Window

Window介绍

暂无

代码示例

代码示例来源:origin: org.uberfire/uberfire-commons-editor-client

void open(final String downloadURL) {
  DomGlobal.window.open(downloadURL);
}

代码示例来源:origin: org.jresearch.dominokit/domino-ui

public static void addCustomQueryListener(String mediaQuery, MediaQueryListener listener) {
  if (!mediaQueries.containsKey(mediaQuery)) {
    MediaQueryList mediaQueryList = window.matchMedia(mediaQuery);
    mediaQueries.put(mediaQuery, mediaQueryList);
  }
  EventTarget mediaQueryList = mediaQueries.get(mediaQuery);
  addListener(listener, Js.uncheckedCast(mediaQueryList));
}

代码示例来源:origin: com.google.elemental2/elemental2-dom

@JsOverlay
public final Promise<Response> fetch(String input) {
 return fetch(Js.<Window.FetchInputUnionType>uncheckedCast(input));
}

代码示例来源:origin: com.google.elemental2/elemental2-dom

@JsOverlay
public final Database openDatabase(
  String name, String version, String description, int size, DatabaseCallback callback) {
 return openDatabase(
   name,
   version,
   description,
   size,
   Js.<Window.OpenDatabaseCallbackUnionType>uncheckedCast(callback));
}

代码示例来源:origin: com.progressoft.brix.domino.impl/domino-gwt

public StateHistory() {
  DomGlobal.self.addEventListener("popstate", event -> {
    PopStateEvent popStateEvent=Js.cast(event);
    JsState state=Js.cast(popStateEvent.state);
    if (nonNull(state))
      inform(state.historyToken, state.title, state.data);
  });
}

代码示例来源:origin: org.realityforge.com.google.elemental2/elemental2-dom

@JsOverlay
public final void importScripts(String... var_args) {
 importScripts(Js.<Window.ImportScriptsVar_argsUnionType>uncheckedCast(var_args));
}

代码示例来源:origin: org.realityforge.com.google.elemental2/elemental2-dom

@JsOverlay
public final Promise<Response> fetch(Request input) {
 return fetch(Js.<Window.FetchInputUnionType>uncheckedCast(input));
}

代码示例来源:origin: org.realityforge.com.google.elemental2/elemental2-dom

@JsOverlay
public final Database openDatabase(
  String name, String version, String description, int size, DatabaseCallback callback) {
 return openDatabase(
   name,
   version,
   description,
   size,
   Js.<Window.OpenDatabaseCallbackUnionType>uncheckedCast(callback));
}

代码示例来源:origin: org.dominokit.domino.impl/domino-gwt

public StateHistory() {
  DomGlobal.self.addEventListener("popstate", event -> {
    PopStateEvent popStateEvent = Js.cast(event);
    JsState state = Js.cast(popStateEvent.state);
    if (nonNull(state) && nonNull(state.historyToken)) {
      inform(state.historyToken, state.title, state.data);
    }else{
      inform(windowToken(), windowTitle(), "");
    }
  });
}

代码示例来源:origin: org.realityforge.com.google.elemental2/elemental2-dom

@JsOverlay
public final void importScripts(TrustedScriptURL... var_args) {
 importScripts(Js.<Window.ImportScriptsVar_argsUnionType>uncheckedCast(var_args));
}

代码示例来源:origin: kiegroup/appformer

void open(final String downloadURL) {
  DomGlobal.window.open(downloadURL);
}

代码示例来源:origin: com.google.elemental2/elemental2-dom

@JsOverlay
public final Promise<Response> fetch(Request input) {
 return fetch(Js.<Window.FetchInputUnionType>uncheckedCast(input));
}

代码示例来源:origin: com.google.elemental2/elemental2-dom

public native Database openDatabase(
  String name,
  String version,
  String description,
  int size,
  Window.OpenDatabaseCallbackUnionType callback);

代码示例来源:origin: DominoKit/domino-ui

public static void addCustomQueryListener(String mediaQuery, MediaQueryListener listener) {
  if (!mediaQueries.containsKey(mediaQuery)) {
    MediaQueryList mediaQueryList = window.matchMedia(mediaQuery);
    mediaQueries.put(mediaQuery, mediaQueryList);
  }
  EventTarget mediaQueryList = mediaQueries.get(mediaQuery);
  addListener(listener, Js.uncheckedCast(mediaQueryList));
}

代码示例来源:origin: kiegroup/drools-wb

protected void open(final String downloadURL) {
  DomGlobal.window.open(downloadURL);
}

代码示例来源:origin: com.google.elemental2/elemental2-dom

@JsOverlay
public final Promise<Response> fetch(String input, RequestInit init) {
 return fetch(Js.<Window.FetchInputUnionType>uncheckedCast(input), init);
}

代码示例来源:origin: org.realityforge.com.google.elemental2/elemental2-dom

public native Database openDatabase(
  String name,
  String version,
  String description,
  int size,
  Window.OpenDatabaseCallbackUnionType callback);

代码示例来源:origin: DominoKit/domino-ui

public static HTMLAnchorElement openInNewTabLink(String text, String targetUrl) {
    return a()
        .textContent(text)
        .on(EventType.click, event -> DomGlobal.window.open(targetUrl, "_blank"))
        .asElement();
  }
}

代码示例来源:origin: org.realityforge.com.google.elemental2/elemental2-dom

@JsOverlay
public final Promise<Response> fetch(String input, RequestInit init) {
 return fetch(Js.<Window.FetchInputUnionType>uncheckedCast(input), init);
}

代码示例来源:origin: org.jresearch.dominokit/domino-ui

public static HTMLAnchorElement openInNewTabLink(String text, String targetUrl) {
    return a()
        .textContent(text)
        .on(EventType.click, event -> DomGlobal.window.open(targetUrl, "_blank"))
        .asElement();
  }
}

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com