List of usage examples for com.google.gwt.dom.client TableRowElement getOffsetHeight
@Override
public int getOffsetHeight()
From source file:org.rstudio.core.client.widget.FastSelectTable.java
License:Open Source License
public Rectangle getSelectionRect() { if (selectedRows_.size() == 0) return null; sortSelectedRows();//from ww w . j a v a 2 s . co m TableRowElement first = selectedRows_.get(0); TableRowElement last = selectedRows_.get(selectedRows_.size() - 1); int top = first.getOffsetTop(); int bottom = last.getOffsetTop() + last.getOffsetHeight(); int left = first.getOffsetLeft(); int width = first.getOffsetWidth(); return new Rectangle(left, top, width, bottom - top); }