use of org.loboevolution.html.dom.HTMLTableRowElement in project LoboEvolution by LoboEvolution.
the class HTMLTableRowElementImpl method getRowIndex.
/**
* {@inheritDoc}
*/
@Override
public int getRowIndex() {
if (index >= 0) {
return index;
} else {
AtomicInteger index = new AtomicInteger(-1);
if (getParentNode() != null) {
NodeListImpl childNodes = (NodeListImpl) getParentNode().getChildNodes();
childNodes.forEach(node -> {
if (node instanceof HTMLTableRowElement) {
index.incrementAndGet();
}
});
}
return index.get();
}
}
Aggregations