com.gargoylesoftware.htmlunit.javascript.host.Window.initialize()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 JavaScript  
字(5.1k)|赞(0)|评价(0)|浏览(226)

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

Window.initialize介绍

[英]Initializes the object. Only called for Windows with no contents.
[中]初始化对象。只调用没有内容的窗口。

代码示例

代码示例来源:origin: net.sourceforge.htmlunit/htmlunit

/**
 * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br>
 *
 * Initializes a new empty window for JavaScript.
 *
 * @param webWindow the new WebWindow
 */
public void initializeEmptyWindow(final WebWindow webWindow) {
  WebAssert.notNull("webWindow", webWindow);
  initialize(webWindow);
  ((Window) webWindow.getScriptableObject()).initialize();
}

代码示例来源:origin: HtmlUnit/htmlunit

/**
 * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br>
 *
 * Initializes a new empty window for JavaScript.
 *
 * @param webWindow the new WebWindow
 */
public void initializeEmptyWindow(final WebWindow webWindow) {
  WebAssert.notNull("webWindow", webWindow);
  initialize(webWindow);
  ((Window) webWindow.getScriptableObject()).initialize();
}

代码示例来源:origin: org.jvnet.hudson/htmlunit

/**
 * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br/>
 *
 * Initializes a new page for JavaScript.
 * @param newPage the new page
 */
public void initialize(final Page newPage) {
  WebAssert.notNull("newPage", newPage);
  if (scriptEngine_ != null) {
    ((Window) newPage.getEnclosingWindow().getScriptObject()).initialize(newPage);
  }
}

代码示例来源:origin: net.disy.htmlunit/htmlunit

/**
 * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br/>
 *
 * Initializes a new page for JavaScript.
 * @param newPage the new page
 */
public void initialize(final Page newPage) {
  WebAssert.notNull("newPage", newPage);
  if (scriptEngine_ != null) {
    ((Window) newPage.getEnclosingWindow().getScriptObject()).initialize(newPage);
  }
}

代码示例来源:origin: org.jenkins-ci/htmlunit

/**
 * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br/>
 *
 * Initializes a new page for JavaScript.
 * @param newPage the new page
 */
public void initialize(final Page newPage) {
  WebAssert.notNull("newPage", newPage);
  if (scriptEngine_ != null) {
    ((Window) newPage.getEnclosingWindow().getScriptObject()).initialize(newPage);
  }
}

代码示例来源:origin: org.jenkins-ci/htmlunit

/**
 * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br/>
 *
 * Initializes a new empty window for JavaScript.
 *
 * @param webWindow the new WebWindow
 */
public void initializeEmptyWindow(final WebWindow webWindow) {
  WebAssert.notNull("webWindow", webWindow);
  if (scriptEngine_ != null) {
    initialize(webWindow);
    ((Window) webWindow.getScriptObject()).initialize();
  }
}

代码示例来源:origin: net.disy.htmlunit/htmlunit

/**
 * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br/>
 *
 * Initializes a new empty window for JavaScript.
 *
 * @param webWindow the new WebWindow
 */
public void initializeEmptyWindow(final WebWindow webWindow) {
  WebAssert.notNull("webWindow", webWindow);
  if (scriptEngine_ != null) {
    initialize(webWindow);
    ((Window) webWindow.getScriptObject()).initialize();
  }
}

代码示例来源:origin: org.jvnet.hudson/htmlunit

/**
 * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br/>
 *
 * Initializes a new empty window for JavaScript.
 *
 * @param webWindow the new WebWindow
 */
public void initializeEmptyWindow(final WebWindow webWindow) {
  WebAssert.notNull("webWindow", webWindow);
  if (scriptEngine_ != null) {
    initialize(webWindow);
    ((Window) webWindow.getScriptObject()).initialize();
  }
}

代码示例来源:origin: net.sourceforge.htmlunit/htmlunit

/**
 * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br>
 *
 * Initializes a new page for JavaScript.
 * @param newPage the new page
 */
public void initialize(final Page newPage) {
  WebAssert.notNull("newPage", newPage);
  final WebWindow webWindow = newPage.getEnclosingWindow();
  if (webWindow.getScriptableObject() instanceof Window) {
    ((Window) webWindow.getScriptableObject()).initialize(newPage);
  }
}

代码示例来源:origin: HtmlUnit/htmlunit

/**
 * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br>
 *
 * Initializes a new page for JavaScript.
 * @param newPage the new page
 */
public void initialize(final Page newPage) {
  WebAssert.notNull("newPage", newPage);
  final WebWindow webWindow = newPage.getEnclosingWindow();
  if (webWindow.getScriptableObject() instanceof Window) {
    ((Window) webWindow.getScriptableObject()).initialize(newPage);
  }
}

代码示例来源:origin: net.disy.htmlunit/htmlunit

window.initialize(webWindow);

代码示例来源:origin: org.jvnet.hudson/htmlunit

window.initialize(webWindow);

代码示例来源:origin: net.sourceforge.htmlunit/htmlunit

window.initialize(webWindow);

代码示例来源:origin: org.jenkins-ci/htmlunit

window.initialize(webWindow);

代码示例来源:origin: HtmlUnit/htmlunit

window.initialize(webWindow);

相关文章