com.google.gwt.event.dom.client.MouseWheelHandler Java Examples
The following examples show how to use
com.google.gwt.event.dom.client.MouseWheelHandler.
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: CirSim.java From circuitjs1 with GNU General Public License v2.0 | 6 votes |
public void onMouseWheel(MouseWheelEvent e) { e.preventDefault(); // once we start zooming, don't allow other uses of mouse wheel for a while // so we don't accidentally edit a resistor value while zooming boolean zoomOnly = System.currentTimeMillis() < zoomTime+1000; if (!zoomOnly) scrollValues(e.getNativeEvent().getClientX(), e.getNativeEvent().getClientY(), e.getDeltaY()); if (mouseElm instanceof MouseWheelHandler && !zoomOnly) ((MouseWheelHandler) mouseElm).onMouseWheel(e); else if (scopeSelected != -1) scopes[scopeSelected].onMouseWheel(e); else if (!dialogIsShowing()) { zoomCircuit(e.getDeltaY()); zoomTime = System.currentTimeMillis(); } repaint(); }
Example #2
Source File: HandlerPanel.java From appinventor-extensions with Apache License 2.0 | 4 votes |
public HandlerRegistration addMouseWheelHandler(MouseWheelHandler handler) { return addDomHandler(handler, MouseWheelEvent.getType()); }
Example #3
Source File: P.java From unitime with Apache License 2.0 | 4 votes |
@Override public HandlerRegistration addMouseWheelHandler( MouseWheelHandler handler) { return addHandler(handler, MouseWheelEvent.getType()); }
Example #4
Source File: AbstractInput.java From putnami-web-toolkit with GNU Lesser General Public License v3.0 | 4 votes |
@Override public com.google.gwt.event.shared.HandlerRegistration addMouseWheelHandler(MouseWheelHandler handler) { return this.addDomHandler(handler, MouseWheelEvent.getType()); }
Example #5
Source File: ListItem.java From putnami-web-toolkit with GNU Lesser General Public License v3.0 | 4 votes |
@Override public HandlerRegistration addMouseWheelHandler(MouseWheelHandler handler) { return this.addDomHandler(handler, MouseWheelEvent.getType()); }
Example #6
Source File: Anchor.java From putnami-web-toolkit with GNU Lesser General Public License v3.0 | 4 votes |
@Override public HandlerRegistration addMouseWheelHandler(MouseWheelHandler handler) { return this.addDomHandler(handler, MouseWheelEvent.getType()); }