Class zwt.event.WheelEventManager
Extends
zwt.event.UIEventManager.
A wheel event manager is used by a widget to process wheel events and dispatch them to the appropriate handlers.
Handlers are methods previously registered on the event manager to handle a specific type of event. A typical handler method has two input parameters: the object that triggered the event and the event. An optional object argument may also be passed to the handler if it was provided when dispatching the event to the event manager (see zwt.event.EventManager#onEvent).
Wheel events are catch by the zwt.ui.Window and dispatch to the widget when it has the focus. Therefore method zwt.event.UIEventManager#registerElement does nothing and should never be used.
Defined in: WheelEventManager.js.
Constructor Attributes | Constructor Name and Description |
---|---|
zwt.event.WheelEventManager(zwt_ui_Widget_widget)
Construct a wheel event manager and attach it to the specified widget.
|
Method Attributes | Method Name and Description |
---|---|
addWheelHandler(function_handler)
Add a wheel handler.
|
|
removeWheelHandler(function_handler)
Remove a wheel handler.
|
- Methods borrowed from class zwt.event.UIEventManager:
- finalizeEventHandling, registerElement
- Methods borrowed from class zwt.event.EventManager:
- addHandler, addHandlers, onEvent, removeHandler, removeHandlers
Class Detail
zwt.event.WheelEventManager(zwt_ui_Widget_widget)
Construct a wheel event manager and attach it to the specified widget.
Author: Jeremy KUHN.
Author: Jeremy KUHN.
- Parameters:
- {zwt.ui.Widget} zwt_ui_Widget_widget
- The widget to monitor
Method Detail
addWheelHandler(function_handler)
Add a wheel handler.
- Parameters:
- {Function} function_handler
- The handler to add
removeWheelHandler(function_handler)
Remove a wheel handler.
- Parameters:
- {Function} function_handler
- The handler to remove