List of usage examples for com.google.gwt.event.dom.client ScrollHandler onScroll
void onScroll(ScrollEvent event);
From source file:ca.wimsc.client.common.widgets.google.Scroller.java
License:Apache License
private void fireScrolled() { // TODO: this isn't really the right way to do this for (ScrollHandler next : myScrollHandlers) { next.onScroll(new ScrollEvent() { });//www .j a va 2s . c om } }
From source file:edu.caltech.ipac.firefly.visualize.WebPlotView.java
public void onScroll() { int x = getScrollX(); int y = getScrollY(); int w = getScrollWidth(); int h = getScrollHeight(); if (_lastX != x || _lastY != y || _lastW != w || _lastH != h) { //todo - no lose this optimization - i think it needs to be somewhere else now _lastX = x;/*from ww w.j a va 2s. com*/ _lastY = y; _lastW = w; _lastH = h; } if (_primaryScrollInfo != null) { _primaryScrollInfo._sWidth = w; _primaryScrollInfo._sHeight = h; _primaryScrollInfo._scrollHPos = x; _primaryScrollInfo._scrollVPos = y; } for (ScrollHandler handler : _scrollHandlerList) { handler.onScroll(null); } }