elemental.client.Browser类的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(6.3k)|赞(0)|评价(0)|浏览(87)

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

Browser介绍

暂无

代码示例

代码示例来源:origin: cromwellian/angulargwt

public void f() {
    Browser.getWindow().getConsole().info("loading angularjs succeeded.");
    injectModules();                    
  }
});

代码示例来源:origin: ManfredTremmel/gwt-bean-validators

/**
 * constructor.
 *
 * @param pnumberRenderer number renderer
 * @param pnumberParser number parser
 * @param pkeyPressHandler key press handler
 */
public AbstractMinMaxTextBox(final Renderer<T> pnumberRenderer, final Parser<T> pnumberParser,
  final KeyPressHandler pkeyPressHandler) {
 this(Browser.getDocument().createInputElement(), "number", pnumberRenderer, pnumberParser,
   pnumberRenderer, pnumberParser, pkeyPressHandler);
}

代码示例来源:origin: de.knightsoft-net/gwt-mt-widgets

/**
 * constructor.
 *
 * @param pnumberRenderer number renderer
 * @param pnumberParser number parser
 * @param pkeyPressHandler key press handler
 */
public AbstractMinMaxTextBox(final Renderer<T> pnumberRenderer, final Parser<T> pnumberParser,
  final KeyPressHandler pkeyPressHandler) {
 this(Browser.getDocument().createInputElement(), "number", pnumberRenderer, pnumberParser,
   pnumberRenderer, pnumberParser, pkeyPressHandler);
}

代码示例来源:origin: cromwellian/angulargwt

public void f() {
    Browser.getWindow().getConsole().warn("loading angularjs failed.");
  }
});

代码示例来源:origin: de.knightsoft-net/gwt-mt-widgets

/**
 * constructor.
 *
 * @param pnumberRenderer number renderer
 * @param pnumberParser number parser
 * @param pplainNumberRenderer number renderer for internal usage
 * @param pplainNumberParser number parser for internal usage
 * @param pkeyPressHandler key press handler
 */
public AbstractMinMaxTextBox(final Renderer<T> pnumberRenderer, final Parser<T> pnumberParser,
  final Renderer<T> pplainNumberRenderer, final Parser<T> pplainNumberParser,
  final KeyPressHandler pkeyPressHandler) {
 this(Browser.getDocument().createInputElement(), "number", pnumberRenderer, pnumberParser,
   pplainNumberRenderer, pplainNumberParser, pkeyPressHandler);
}

代码示例来源: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: ManfredTremmel/gwt-bean-validators

/**
 * constructor.
 *
 * @param pnumberRenderer number renderer
 * @param pnumberParser number parser
 * @param pplainNumberRenderer number renderer for internal usage
 * @param pplainNumberParser number parser for internal usage
 * @param pkeyPressHandler key press handler
 */
public AbstractMinMaxTextBox(final Renderer<T> pnumberRenderer, final Parser<T> pnumberParser,
  final Renderer<T> pplainNumberRenderer, final Parser<T> pplainNumberParser,
  final KeyPressHandler pkeyPressHandler) {
 this(Browser.getDocument().createInputElement(), "number", pnumberRenderer, pnumberParser,
   pplainNumberRenderer, pplainNumberParser, pkeyPressHandler);
}

代码示例来源: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: de.knightsoft-net/gwt-mt-widgets

/**
  * ui constructor.
  *
  * @param tag name of the tag to generate
  */
 @UiConstructor
 public SimpleTagPanel(final String tag) {
  super((Element) Browser.getDocument().createElement(tag));
 }
}

代码示例来源: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: ManfredTremmel/gwt-bean-validators

/**
  * ui constructor.
  *
  * @param tag name of the tag to generate
  */
 @UiConstructor
 public SimpleTagPanel(final String tag) {
  super((Element) Browser.getDocument().createElement(tag));
 }
}

代码示例来源: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: de.knightsoft-net/gwt-mt-widgets

/**
 * default constructor.
 */
public CheckBox() {
 super(Browser.getDocument().createInputElement(), "checkbox", BooleanRenderer.instance(),
   BooleanParser.instance());
}

代码示例来源: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: de.knightsoft-net/gwt-mt-widgets

/**
  * default constructor.
  */
 public ColorBox() {
  super(Browser.getDocument().createInputElement(), "color", PassthroughRenderer.instance(),
    PassthroughParser.instance());
 }
}

代码示例来源:origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets

Browser.getWindow().setOnhashchange(event -> navigate());
} else {
  Browser.getWindow().setOnpopstate(event -> navigate());

代码示例来源:origin: de.knightsoft-net/gwt-mt-widgets

/**
 * default constructor.
 */
public EmailTextBox() {
 super(Browser.getDocument().createInputElement(), "email", PassthroughRenderer.instance(),
   PassthroughParser.instance());
}

代码示例来源:origin: org.jboss.as/jboss-as-console-dmr

XMLHttpRequest xhr = Browser.getWindow().newXMLHttpRequest();

代码示例来源:origin: de.knightsoft-net/gwt-mt-widgets

/**
  * default constructor.
  */
 public SearchTextBox() {
  super(Browser.getDocument().createInputElement(), "search", PassthroughRenderer.instance(),
    PassthroughParser.instance());
 }
}

代码示例来源:origin: de.knightsoft-net/gwt-mt-widgets

/**
  * default constructor.
  */
 public TimeBox() {
  super(Browser.getDocument().createInputElement(), "time", TimeRenderer.instance(),
    TimeParser.instance(), null);
 }
}

相关文章