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

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

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

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);
}

相关文章