List of usage examples for com.google.gwt.user.client Element scrollIntoView
@Override
public void scrollIntoView()
From source file:co.fxl.gui.gwt.GWTScrollPane.java
License:Open Source License
@Override public IScrollPane scrollIntoView(IElement<?> element) { programmaticSet = true;/*from w w w .j a v a2s .com*/ Widget w = (Widget) element.nativeElement(); Element e = w.getElement(); e.scrollIntoView(); programmaticSet = false; return this; }
From source file:com.google.gerrit.client.ui.NavigationTable.java
License:Apache License
protected void scrollIntoView(final Element tr) { if (!computedScrollType) { parentScrollPanel = null;// w w w . j av a2s . c o m Widget w = getParent(); while (w != null) { if (w instanceof ScrollPanel) { parentScrollPanel = (ScrollPanel) w; break; } w = w.getParent(); } computedScrollType = true; } if (parentScrollPanel != null) { parentScrollPanel.ensureVisible(new UIObject() { { setElement(tr); } }); } else { tr.scrollIntoView(); } }
From source file:org.activityinfo.ui.client.page.entry.location.SearchListView.java
License:Open Source License
private void scrollIntoView(LocationDTO location) { int index = store.indexOf(location); if (index >= 0) { Element element = getElement(index); if (element != null) { element.scrollIntoView(); }//from w w w . j a v a2 s . c om } }