Visual Event

301 views
Skip to first unread message

theallan

unread,
Dec 27, 2011, 5:27:18 AM12/27/11
to Google Web Toolkit
Hello all,

I'm the author of a bookmarklet called Visual Event (
http://www.sprymedia.co.uk/article/Visual+Event+2 ) which shows events
that are assigned to DOM elements. Unfortunately due to the lack of
being able to query the DOM to find out what events have been applied
to elements what I do is parse through event cache information held by
Javascript libraries.

So what I was wondering was, does GWT hold this kind of event
information and is it globally assessable as a property or a method
somehow? With this information I'd be able to add support to Visual
Event for showing GWT assigned events.

Many thanks,
Allan

Ed

unread,
Dec 27, 2011, 11:54:50 AM12/27/11
to google-we...@googlegroups.com
I am not sure if I can completely answer your question as I am not a JS expert, but let's give it a try
You might want to ask this in the contributor forum where you find more dev team members.

GWT holds the current fired event as global property in DOM.currentEvent.
(GWT code is accessible from JS code)
A GWT event has a short lifecycle and is only valid when it's fired and as such can be accessed through this property.
The gwt event also contains a reference to the widget (element).


Reply all
Reply to author
Forward
0 new messages