com.maryanovsky.gwtutils.client
Interface WheelAction

All Known Implementing Classes:
MapWidget.MapWheelAction

public interface WheelAction

An action which may be invoked when the mouse wheel is scrolled. See UserEventManager for further details.

Author:
Maryanovsky Alexander

Method Summary
 void mouseWheelScrolled(Widget target, PointView point, MouseWheelVelocity velocity)
          Invoked when the mouse wheel is scrolled.
 void mouseWheelScrolledDown(Widget target, PointView point)
          Invoked when the mouse wheel is scrolled upwards.
 void mouseWheelScrolledUp(Widget target, PointView point)
          Invoked when the mouse wheel is scrolled upwards.
 

Method Detail

mouseWheelScrolledUp

void mouseWheelScrolledUp(Widget target,
                          PointView point)
Invoked when the mouse wheel is scrolled upwards. Note that some mouse wheel scroll events may not reach this method, because some browsers fire events too rapidly, which are filtered by UserEventManager. The mouseWheelScrolled(Widget, PointView, MouseWheelVelocity) method, however, receives all scroll events generated by the browser.

Parameters:
target - The widget over which the wheel was scrolled.
point - The location of the mouse, relative to the widget, at the time it was scrolled.

mouseWheelScrolledDown

void mouseWheelScrolledDown(Widget target,
                            PointView point)
Invoked when the mouse wheel is scrolled upwards. Note that some mouse wheel scroll events may not reach this method, because some browsers fire events too rapidly, which are filtered by UserEventManager. The mouseWheelScrolled(Widget, PointView, MouseWheelVelocity) method, however, receives all scroll events generated by the browser.

Parameters:
target - The widget over which the wheel was scrolled.
point - The location of the mouse, relative to the widget, at the time it was scrolled.

mouseWheelScrolled

void mouseWheelScrolled(Widget target,
                        PointView point,
                        MouseWheelVelocity velocity)
Invoked when the mouse wheel is scrolled.

Parameters:
target - The widget over which the wheel was scrolled.
point - The location of the mouse, relative to the widget, at the time it was scrolled.
velocity - The velocity of the scroll.