com.google.gwt.event.dom.client.ScrollHandler Java Examples

The following examples show how to use com.google.gwt.event.dom.client.ScrollHandler. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DiagramController.java    From document-management-software with GNU Lesser General Public License v3.0 5 votes vote down vote up
public ScrollPanel getViewAsScrollPanel() {
	scrollPanel.addScrollHandler(new ScrollHandler() {
		@Override
		public void onScroll(ScrollEvent event) {
			unsynchronizedShapes();
		}
	});
	return scrollPanel;
}
 
Example #2
Source File: DiagramController.java    From EasyML with Apache License 2.0 5 votes vote down vote up
/**
 * Get the scroll panel in the drawing cavcas.
 * @return
 */
public ScrollPanel getViewAsScrollPanel() {
	scrollPanel.addScrollHandler(new ScrollHandler() {
		@Override
		public void onScroll(ScrollEvent event) {
		}
	});
	return scrollPanel;
}