HtmlTableRow.getEnclosingTable
Code IndexAdd Codota to your IDE (free)

Best code snippets using com.gargoylesoftware.htmlunit.html.HtmlTableRow.getEnclosingTable(Showing top 8 results out of 315)

  • Common ways to obtain HtmlTableRow
private void myMethod () {
HtmlTableRow h =
  • HtmlTable.RowIterator htmlTableRowIterator;htmlTableRowIterator.next()
  • HtmlTableCell htmlTableCell;htmlTableCell.getEnclosingRow()
  • AI code suggestions by Codota
}
origin: org.jenkins-ci/htmlunit

/**
 * Returns the index of the row within the parent table.
 * @return the index of the row within the parent table
 * @see <a href="http://msdn.microsoft.com/en-us/library/ms534377.aspx">MSDN Documentation</a>
 */
public int jsxGet_rowIndex() {
  final HtmlTableRow row = (HtmlTableRow) getDomNodeOrDie();
  final HtmlTable table = row.getEnclosingTable();
  return table.getRows().indexOf(row);
}
origin: net.sourceforge.htmlunit/htmlunit

/**
 * Returns the index of the row within the enclosing thead, tbody or tfoot.
 * @return the index of the row within the enclosing thead, tbody or tfoot
 * @see <a href="http://msdn.microsoft.com/en-us/library/ms534621.aspx">MSDN Documentation</a>
 * @see <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.html#ID-79105901">
 * DOM Level 1</a>
 */
@JsxGetter
public int getSectionRowIndex() {
  DomNode row = getDomNodeOrDie();
  final HtmlTable table = ((HtmlTableRow) row).getEnclosingTable();
  if (table == null) { // a not attached document.createElement('TR')
    return -1;
  }
  int index = -1;
  while (row != null) {
    if (row instanceof HtmlTableRow) {
      index++;
    }
    row = row.getPreviousSibling();
  }
  return index;
}
origin: net.sourceforge.htmlunit/htmlunit

final HtmlTable enclosingTable = row.getEnclosingTable();
if (enclosingTable != null) { // may be null when called from Range.createContextualFragment
  if (enclosingTable.getPreviousSibling() instanceof DomText) {
origin: net.sourceforge.htmlunit/htmlunit

/**
 * Returns the index of the row within the parent table.
 * @return the index of the row within the parent table
 * @see <a href="http://msdn.microsoft.com/en-us/library/ms534377.aspx">MSDN Documentation</a>
 */
@JsxGetter
public int getRowIndex() {
  final HtmlTableRow row = (HtmlTableRow) getDomNodeOrDie();
  final HtmlTable table = row.getEnclosingTable();
  if (table == null) { // a not attached document.createElement('TR')
    return -1;
  }
  return table.getRows().indexOf(row);
}
origin: org.jvnet.hudson/htmlunit

/**
 * Returns the index of the row within the parent table.
 * @return the index of the row within the parent table
 * @see <a href="http://msdn.microsoft.com/en-us/library/ms534377.aspx">MSDN Documentation</a>
 */
public int jsxGet_rowIndex() {
  final HtmlTableRow row = (HtmlTableRow) getDomNodeOrDie();
  final HtmlTable table = row.getEnclosingTable();
  return table.getRows().indexOf(row);
}
origin: net.sourceforge.htmlunit/htmlunit

/**
 * Returns the index of the row within the parent table.
 * @return the index of the row within the parent table
 * @see <a href="http://msdn.microsoft.com/en-us/library/ms534377.aspx">MSDN Documentation</a>
 */
@JsxGetter
public int getRowIndex() {
  final HtmlTableRow row = (HtmlTableRow) getDomNodeOrDie();
  final HtmlTable table = row.getEnclosingTable();
  if (table == null) { // a not attached document.createElement('TR')
    return -1;
  }
  return table.getRows().indexOf(row);
}
origin: net.sourceforge.htmlunit/htmlunit

/**
 * Returns the index of the row within the enclosing thead, tbody or tfoot.
 * @return the index of the row within the enclosing thead, tbody or tfoot
 * @see <a href="http://msdn.microsoft.com/en-us/library/ms534621.aspx">MSDN Documentation</a>
 * @see <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.html#ID-79105901">
 * DOM Level 1</a>
 */
@JsxGetter
public int getSectionRowIndex() {
  DomNode row = getDomNodeOrDie();
  final HtmlTable table = ((HtmlTableRow) row).getEnclosingTable();
  if (table == null) { // a not attached document.createElement('TR')
    return -1;
  }
  int index = -1;
  while (row != null) {
    if (row instanceof HtmlTableRow) {
      index++;
    }
    row = row.getPreviousSibling();
  }
  return index;
}
origin: net.sourceforge.htmlunit/htmlunit

final HtmlTable enclosingTable = row.getEnclosingTable();
if (enclosingTable != null) { // may be null when called from Range.createContextualFragment
  if (enclosingTable.getPreviousSibling() instanceof DomText) {
com.gargoylesoftware.htmlunit.htmlHtmlTableRowgetEnclosingTable

Javadoc

Gets the table containing this row.

Popular methods of HtmlTableRow

  • <init>
    Creates an instance.
  • getCellIterator
  • getCells
  • appendChild
  • getAttribute
  • getCell
  • getEnclosingElement
  • getFirstChild
  • getNextSibling
  • getPage
  • getPreviousSibling
  • getId
  • getPreviousSibling,
  • getId,
  • getParentNode

Popular classes and methods

  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • getExternalFilesDir (Context)
  • getContentResolver (Context)
  • Thread (java.lang)
    A Thread is a concurrent unit of execution. It has its own call stack for methods being invoked, the
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Reference (javax.naming)
  • JFrame (javax.swing)
  • JList (javax.swing)

For IntelliJ IDEA and
Android Studio

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)