Class Index | File Index

Classes


Class zwt.event.FocusEvent


Extends zwt.event.UIEvent.

A focus event object is emitted when a focus event occurs on a widget.


Defined in: FocusEvent.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
zwt.event.FocusEvent(event, zwt_ui_Widget_widget, int_type, boolean_backward)
Construct a focus event object.
Field Summary
Field Attributes Field Name and Description
<static>  
zwt.event.FocusEvent.BLUR
Constant used to indicate a blur event
<static>  
zwt.event.FocusEvent.FOCUS
Constant used to indicate a focus event
Method Summary
Method Attributes Method Name and Description
 
Return true if the direction of Focus is backward (ie.
 
A FocusEvent always targets a single Widget, therefore it shouldn't be propagated to the ancestors.
Methods borrowed from class zwt.event.UIEvent:
getBrowserEvent, getBrowserEventTarget, getReturn, getWidget, setReturn
Methods borrowed from class zwt.event.Event:
getType, setCancelBubble, touch
Class Detail
zwt.event.FocusEvent(event, zwt_ui_Widget_widget, int_type, boolean_backward)
Construct a focus event object.
Author: Jeremy KUHN.
Parameters:
{Event} event
The JavaScript event object
{zwt.ui.Widget} zwt_ui_Widget_widget
The widget linked to the event
{Integer} int_type
The event type
{Boolean} boolean_backward
Indicate that the focus direction is backward. This flag is set when keyboard navigation is used
Field Detail
<static> {Integer} zwt.event.FocusEvent.BLUR
Constant used to indicate a blur event

<static> {Integer} zwt.event.FocusEvent.FOCUS
Constant used to indicate a focus event
Method Detail
{Boolean} isBackward()
Return true if the direction of Focus is backward (ie. the next widget to focus is actually the previous one in the chain of widgets).
Returns:
true if the direction is backward

{Boolean} isCancelBubble()
A FocusEvent always targets a single Widget, therefore it shouldn't be propagated to the ancestors.

This method always returns true as focus event are not meant to be propagated to ancestors.

Returns:
true

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