Class Index | File Index

Classes


Class zwt.event.MouseEventManager


Extends zwt.event.UIEventManager.

A mouse event manager is used by a widget to process mouse 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).


Defined in: MouseEventManager.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
zwt.event.MouseEventManager(zwt_ui_Widget_widget)
Construct a mouse event manager and attach it to the specified widget.
Method Summary
Method Attributes Method Name and Description
 
addMouseDownHandler(function_handler)
Add a mouse down handler.
 
addMouseMoveHandler(function_handler)
Add a mouse move handler.
 
addMouseOutHandler(function_handler)
Add a mouse out handler.
 
addMouseOverHandler(function_handler)
Add a mouse over handler.
 
addMouseUpHandler(function_handler)
Add a mouse up handler.
 
removeMouseDownHandler(function_handler)
Remove a mouse down handler.
 
removeMouseMoveHandler(function_handler)
Remove a mouse move handler.
 
removeMouseOutHandler(function_handler)
Remove a mouse out handler.
 
removeMouseOverHandler(function_handler)
Remove a mouse over handler.
 
removeMouseUpHandler(function_handler)
Remove a mouse up 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.MouseEventManager(zwt_ui_Widget_widget)
Construct a mouse event manager and attach it to the specified widget.
Author: Jeremy KUHN.
Parameters:
{zwt.ui.Widget} zwt_ui_Widget_widget
The widget to monitor
See:
zwt.event.MouseEvent
Method Detail
addMouseDownHandler(function_handler)
Add a mouse down handler.
Parameters:
{Function} function_handler
The handler to add

addMouseMoveHandler(function_handler)
Add a mouse move handler.
Parameters:
{Function} function_handler
The handler to add

addMouseOutHandler(function_handler)
Add a mouse out handler.
Parameters:
{Function} function_handler
The handler to add

addMouseOverHandler(function_handler)
Add a mouse over handler.
Parameters:
{Function} function_handler
The handler to add

addMouseUpHandler(function_handler)
Add a mouse up handler.
Parameters:
{Function} function_handler
The handler to add

removeMouseDownHandler(function_handler)
Remove a mouse down handler.
Parameters:
{Function} function_handler
The handler to remove

removeMouseMoveHandler(function_handler)
Remove a mouse move handler.
Parameters:
{Function} function_handler
The handler to remove

removeMouseOutHandler(function_handler)
Remove a mouse out handler.
Parameters:
{Function} function_handler
The handler to remove

removeMouseOverHandler(function_handler)
Remove a mouse over handler.
Parameters:
{Function} function_handler
The handler to remove

removeMouseUpHandler(function_handler)
Remove a mouse up handler.
Parameters:
{Function} function_handler
The handler to remove

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Jan 12 2012 02:07:52 GMT+0100 (CET)