Class Index | File Index

Classes


Class zwt.event.FocusEventManager


Extends zwt.event.UIEventManager.

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

Class Summary
Constructor Attributes Constructor Name and Description
 
zwt.event.FocusEventManager(zwt_ui_Widget_widget)
Construct a focus event manager and attach it to the specified widget.
Method Summary
Method Attributes Method Name and Description
 
addBlurHandler(function_handler)
Add a blur handler.
 
addFocusHandler(function_handler)
Add a focus handler.
 
removeBlurHandler(function_handler)
Remove a blur handler.
 
removeFocusHandler(function_handler)
Remove a focus 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.FocusEventManager(zwt_ui_Widget_widget)
Construct a focus 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.FocusEvent
Method Detail
addBlurHandler(function_handler)
Add a blur handler.
Parameters:
{Function} function_handler
The handler to add

addFocusHandler(function_handler)
Add a focus handler.
Parameters:
{Function} function_handler
The handler to add

removeBlurHandler(function_handler)
Remove a blur handler.
Parameters:
{Function} function_handler
The handler to remove

removeFocusHandler(function_handler)
Remove a focus 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)