> Is there any way to implement scroll bar with mouse listeners? Bottom 
> line, I want to send the request while doing scrolling. I meant last 
> scrolling height to server if scrolling is delayed for 100 ms or stopped.
>

Just do what Thomas has suggested. Listen for ScrollEvent and do

void onScroll(ScrollEvent e) {
  sendScrollHeightToServerTimer.schedule(100);
}

If the timer is not yet scheduled it will be scheduled to execute in 100ms 
in the future. However if a new scroll event occurs within that 100ms the 
timer will reset and again wait 100ms. So whenever scrolling is stopped for 
at least 100ms the timer fires and the timer code executes to read the 
scroll height and send it to your server.

-- J.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to