Search in sources :

Example 1 with TableElement

use of com.google.gwt.dom.client.TableElement in project rstudio by rstudio.

the class DirectoryContentsWidget method addDirectory.

public void addDirectory(FileSystemItem directory) {
    int rowNum = addItem(directory, null, null);
    TableElement table = (TableElement) table_.getElement().cast();
    TableRowElement row = table.getRows().getItem(rowNum);
    row.scrollIntoView();
    scrollPanel_.setHorizontalScrollPosition(0);
    setSelectedRow(rowNum);
}
Also used : TableRowElement(com.google.gwt.dom.client.TableRowElement) Point(org.rstudio.core.client.Point) TableElement(com.google.gwt.dom.client.TableElement)

Aggregations

TableElement (com.google.gwt.dom.client.TableElement)1 TableRowElement (com.google.gwt.dom.client.TableRowElement)1 Point (org.rstudio.core.client.Point)1