本文整理了Java中com.gargoylesoftware.htmlunit.WebClient.initialize()
方法的一些代码示例,展示了WebClient.initialize()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebClient.initialize()
方法的具体详情如下:
包路径:com.gargoylesoftware.htmlunit.WebClient
类名称:WebClient
方法名:initialize
[英]INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Initializes a new page for JavaScript.
[中]内部API-随时可能更改-使用风险自负。
初始化JavaScript的新页面。
代码示例来源:origin: org.jvnet.hudson/htmlunit
PopupPseudoWebWindow(final WebClient webClient) {
webClient_ = webClient;
webClient_.initialize(this);
}
代码示例来源:origin: net.disy.htmlunit/htmlunit
PopupPseudoWebWindow(final WebClient webClient) {
webClient_ = webClient;
webClient_.initialize(this);
}
代码示例来源:origin: org.jenkins-ci/htmlunit
PopupPseudoWebWindow(final WebClient webClient) {
webClient_ = webClient;
webClient_.initialize(this);
}
代码示例来源:origin: net.disy.htmlunit/htmlunit
/**
* {@inheritDoc}
*/
public void setEnclosedPage(final Page page) {
if (page == enclosedPage_) {
return;
}
destroyChildren();
enclosedPage_ = page;
history_.addPage(page);
if (isJavaScriptInitializationNeeded()) {
webClient_.initialize(this);
}
webClient_.initialize(page);
}
代码示例来源:origin: net.sourceforge.htmlunit/htmlunit
/**
* {@inheritDoc}
*/
@Override
public void setEnclosedPage(final Page page) {
if (LOG.isDebugEnabled()) {
LOG.debug("setEnclosedPage: " + page);
}
if (page == enclosedPage_) {
return;
}
destroyChildren();
enclosedPage_ = page;
history_.addPage(page);
if (isJavaScriptInitializationNeeded()) {
webClient_.initialize(this);
}
webClient_.initialize(page);
}
代码示例来源:origin: org.jvnet.hudson/htmlunit
/**
* {@inheritDoc}
*/
public void setEnclosedPage(final Page page) {
if (page == enclosedPage_) {
return;
}
destroyChildren();
enclosedPage_ = page;
history_.addPage(page);
if (isJavaScriptInitializationNeeded()) {
webClient_.initialize(this);
}
webClient_.initialize(page);
}
代码示例来源:origin: org.jenkins-ci/htmlunit
/**
* {@inheritDoc}
*/
public void setEnclosedPage(final Page page) {
if (page == enclosedPage_) {
return;
}
destroyChildren();
enclosedPage_ = page;
history_.addPage(page);
if (isJavaScriptInitializationNeeded()) {
webClient_.initialize(this);
}
webClient_.initialize(page);
}
代码示例来源:origin: HtmlUnit/htmlunit
/**
* {@inheritDoc}
*/
@Override
public void setEnclosedPage(final Page page) {
if (LOG.isDebugEnabled()) {
LOG.debug("setEnclosedPage: " + page);
}
if (page == enclosedPage_) {
return;
}
destroyChildren();
enclosedPage_ = page;
history_.addPage(page);
if (isJavaScriptInitializationNeeded()) {
webClient_.initialize(this);
}
webClient_.initialize(page);
}
代码示例来源: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 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.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();
}
}
内容来源于网络,如有侵权,请联系作者删除!