Example usage for com.google.gwt.dom.client TableCellElement getClassName

List of usage examples for com.google.gwt.dom.client TableCellElement getClassName

Introduction

In this page you can find the example usage for com.google.gwt.dom.client TableCellElement getClassName.

Prototype

@Override
    public String getClassName() 

Source Link

Usage

From source file:com.google.speedtracer.client.SourceViewer.java

License:Apache License

/**
 * Returns the cell that contains the line contents for a row.
 *///w ww.j  av  a 2  s. co m
private TableCellElement getRowContentCell(TableRowElement row) {
    NodeList<TableCellElement> cells = row.getElementsByTagName("td").cast();

    for (int i = 0, n = cells.getLength(); i < n; i++) {
        TableCellElement cell = cells.getItem(i);
        if (cell.getClassName().indexOf(LINE_CONTENT) >= 0) {
            return cell;
        }
    }

    return null;
}