List of usage examples for com.google.gwt.dom.client TableRowElement getAbsoluteTop
@Override public int getAbsoluteTop()
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 ww . j a v a2s . c o 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; }