All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.googlecode.gwt.test.internal.patchers.HTMLTableCellFormatterPatcher Maven / Gradle / Ivy

There is a newer version: 0.63
Show newest version
package com.googlecode.gwt.test.internal.patchers;

import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.TableRowElement;
import com.google.gwt.user.client.ui.HTMLTable.CellFormatter;
import com.googlecode.gwt.test.patchers.PatchClass;
import com.googlecode.gwt.test.patchers.PatchMethod;

@PatchClass(CellFormatter.class)
class HTMLTableCellFormatterPatcher {

    @PatchMethod
    static Element getCellElement(CellFormatter cellFormatter, Element table, int row, int col) {
        TableRowElement rowElement = (TableRowElement) table.getChildNodes().getItem(row);
        return rowElement.getChildNodes().getItem(col).cast();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy