/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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; }
/** * 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; }
final HtmlTable enclosingTable = row.getEnclosingTable(); if (enclosingTable != null) { // may be null when called from Range.createContextualFragment if (enclosingTable.getPreviousSibling() instanceof DomText) {
final HtmlTable enclosingTable = row.getEnclosingTable(); if (enclosingTable != null) { // may be null when called from Range.createContextualFragment if (enclosingTable.getPreviousSibling() instanceof DomText) {