Class Index | File Index

Classes


Class zwt.event.WindowEventManager


Extends zwt.event.UIEventManager.

A window event manager is used by a widget to process window 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: WindowEventManager.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
zwt.event.WindowEventManager(zwt_ui_Widget_widget)
Construct a window event manager and attach it to the specified widget.
Method Summary
Method Attributes Method Name and Description
 
addAbortHandler(function_handler)
Add an abort handler.
 
addErrorHandler(function_handler)
Add an error handler.
 
addLoadHandler(function_handler)
Add a load handler.
 
addResizeHandler(function_handler)
Add a resize handler.
 
addUnloadHandler(function_handler)
Add an unload handler.
 
removeAbortHandler(function_handler)
Remove an abort handler.
 
removeLoadHandler(function_handler)
Remove a load handler.
 
removeMouseUpHandler(function_handler)
Remove an error handler.
 
removeResizeHandler(function_handler)
Remove a resize handler.
 
removeUnloadHandler(function_handler)
Remove an unload 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.WindowEventManager(zwt_ui_Widget_widget)
Construct a window 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.WindowEvent
Method Detail
addAbortHandler(function_handler)
Add an abort handler.
Parameters:
{Function} function_handler
The handler to add

addErrorHandler(function_handler)
Add an error handler.
Parameters:
{Function} function_handler
The handler to add

addLoadHandler(function_handler)
Add a load handler.
Parameters:
{Function} function_handler
The handler to add

addResizeHandler(function_handler)
Add a resize handler.
Parameters:
{Function} function_handler
The handler to add

addUnloadHandler(function_handler)
Add an unload handler.
Parameters:
{Function} function_handler
The handler to add

removeAbortHandler(function_handler)
Remove an abort handler.
Parameters:
{Function} function_handler
The handler to remove

removeLoadHandler(function_handler)
Remove a load handler.
Parameters:
{Function} function_handler
The handler to remove

removeMouseUpHandler(function_handler)
Remove an error handler.
Parameters:
{Function} function_handler
The handler to remove

removeResizeHandler(function_handler)
Remove a resize handler.
Parameters:
{Function} function_handler
The handler to remove

removeUnloadHandler(function_handler)
Remove an unload handler.
Parameters:
{Function} function_handler
The handler to remove

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Nov 09 2011 19:29:07 GMT+0100 (CET)