Class Index | File Index

Classes


Class zwt.event.Event


Extends zwt.Object.

This is the base class of all event classes.


Defined in: Event.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
zwt.event.Event(int_type)
Construct an event.
Field Summary
Field Attributes Field Name and Description
<static>  
zwt.event.Event.UNKNOWN
Constant used to indicate an unknown event
Method Summary
Method Attributes Method Name and Description
 
Return the type of the event.
 
Return true if this event should not be propagated to parent objects.
 
setCancelBubble(boolean_cancelBubble)
Set whether or not the event should be propagated to parent objects.
 
touch(zwt_ui_Widget_widget)
A widget has to touch the event that is currently processed to prevent it to be dispatch twice to the same widget.
Class Detail
zwt.event.Event(int_type)
Construct an event.
Author: Jeremy KUHN.
Parameters:
{Integer} int_type
The event type
Field Detail
<static> {Integer} zwt.event.Event.UNKNOWN
Constant used to indicate an unknown event
Method Detail
{Integer} getType()
Return the type of the event.
Returns:
The type of the event

{Boolean} isCancelBubble()
Return true if this event should not be propagated to parent objects.
Returns:
true if event is cancelBubble

setCancelBubble(boolean_cancelBubble)
Set whether or not the event should be propagated to parent objects.
Parameters:
{Boolean} boolean_cancelBubble

touch(zwt_ui_Widget_widget)
A widget has to touch the event that is currently processed to prevent it to be dispatch twice to the same widget.

This method is called by zwt.ui.Widget#onEvent.

Parameters:
{zwt.ui.Widget} zwt_ui_Widget_widget
The widget that has processed the event

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