Example usage for com.google.gwt.dom.client TableRowElement getAbsoluteLeft

List of usage examples for com.google.gwt.dom.client TableRowElement getAbsoluteLeft

Introduction

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

Prototype

@Override
    public int getAbsoluteLeft() 

Source Link

Usage

From source file:com.gwtmodel.table.view.table.PresentationTable.java

License:Apache License

@Override
public WSize getRowWidget(int rowno) {
    MutableInteger sel = new MutableInteger(rowno);
    // cell position not defined, take the position of the whole row
    List<MutableInteger> vList = table.getVisibleItems();
    int inde = -1;
    boolean found = false;
    for (MutableInteger ine : vList) {
        inde++;/*from  w  w  w  . j  a va2  s . co m*/
        if (ine.equals(sel)) {
            found = true;
            break;
        }
    }
    assert found : LogT.getT().RowSelectedNotFound();
    TableRowElement ro = table.getRowElement(inde);
    WSize w;
    if (ro == null) {
        w = new WSize(table.getAbsoluteTop(), table.getAbsoluteLeft(), 0, 0);
    } else {
        w = new WSize(ro.getAbsoluteTop(), ro.getAbsoluteLeft(), ro.getClientHeight(), ro.getClientWidth());
    }
    return w;
}