Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Help please .Do anyone know how to catch all event in GWT

333 views
Skip to first unread message

sunny kapoor

unread,
Jun 22, 2009, 10:43:30 AM6/22/09
to Google Web Toolkit
Dear memeber,

Is there any way to listen for all the events of elements in GWT ?

Many Thanks

mabogie

unread,
Jun 22, 2009, 12:17:29 PM6/22/09
to Google Web Toolkit
You can listen to all native dom events this way:

Event.addNativePreviewHandler(new NativePreviewHandler(){
public void onPreviewNativeEvent(NativePreviewEvent event) {
String eventName = event.getNativeEvent().getType(); // check
this out
}
});
Reply all
Reply to author
Forward
0 new messages