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);
}
Aggregations