本文整理了Java中com.gargoylesoftware.htmlunit.javascript.host.Window.getFrames()
方法的一些代码示例,展示了Window.getFrames()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.getFrames()
方法的具体详情如下:
包路径:com.gargoylesoftware.htmlunit.javascript.host.Window
类名称:Window
方法名:getFrames
[英]Returns the live collection of frames contained by this window.
[中]返回此窗口包含的实时帧集合。
代码示例来源:origin: org.jenkins-ci/htmlunit
/**
* Returns the number of frames contained by this window.
* @return the number of frames contained by this window
*/
public int jsxGet_length() {
return getFrames().jsxGet_length();
}
代码示例来源:origin: org.jvnet.hudson/htmlunit
/**
* Returns the number of frames contained by this window.
* @return the number of frames contained by this window
*/
public int jsxGet_length() {
return getFrames().jsxGet_length();
}
代码示例来源:origin: net.disy.htmlunit/htmlunit
/**
* Returns the number of frames contained by this window.
* @return the number of frames contained by this window
*/
public int jsxGet_length() {
return getFrames().jsxGet_length();
}
代码示例来源:origin: net.sourceforge.htmlunit/htmlunit
/**
* Returns the number of frames contained by this window.
* @return the number of frames contained by this window
*/
@JsxGetter
public int getLength() {
return getFrames().getLength();
}
代码示例来源:origin: HtmlUnit/htmlunit
/**
* Returns the number of frames contained by this window.
* @return the number of frames contained by this window
*/
@JsxGetter
public int getLength() {
return getFrames().getLength();
}
代码示例来源:origin: net.sourceforge.htmlunit/htmlunit
/**
* {@inheritDoc}
*/
@Override
public Object get(final int index, final Scriptable start) {
if (getWebWindow() == null) {
return Undefined.instance;
}
final HTMLCollection frames = getFrames();
if (index < 0 || index >= frames.getLength()) {
return Undefined.instance;
}
return frames.item(Integer.valueOf(index));
}
代码示例来源:origin: HtmlUnit/htmlunit
/**
* {@inheritDoc}
*/
@Override
public Object get(final int index, final Scriptable start) {
if (getWebWindow() == null) {
return Undefined.instance;
}
final HTMLCollection frames = getFrames();
if (index < 0 || index >= frames.getLength()) {
return Undefined.instance;
}
return frames.item(Integer.valueOf(index));
}
代码示例来源:origin: org.jvnet.hudson/htmlunit
/**
* {@inheritDoc}
*/
@Override
public Object get(final int index, final Scriptable start) {
final HTMLCollection frames = getFrames();
if (index >= frames.jsxGet_length()) {
return Context.getUndefinedValue();
}
return frames.jsxFunction_item(index);
}
代码示例来源:origin: net.disy.htmlunit/htmlunit
/**
* {@inheritDoc}
*/
@Override
public Object get(final int index, final Scriptable start) {
final HTMLCollection frames = getFrames();
if (index >= frames.jsxGet_length()) {
return Context.getUndefinedValue();
}
return frames.jsxFunction_item(index);
}
代码示例来源:origin: org.jenkins-ci/htmlunit
/**
* {@inheritDoc}
*/
@Override
public Object get(final int index, final Scriptable start) {
final HTMLCollection frames = getFrames();
if (index >= frames.jsxGet_length()) {
return Context.getUndefinedValue();
}
return frames.jsxFunction_item(index);
}
内容来源于网络,如有侵权,请联系作者删除!