how to fire a element's event?

2011-11-28 Thread wahaha
there is instance of Element(not Widget),how to fire its click event? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to

Re: how to fire a element's event?

2011-11-28 Thread András Csányi
On 28 November 2011 14:29, wahaha il...@yahoo.com.cn wrote: there is instance of Element(not Widget),how to fire its click event? Attach to it an ClickHandler. Go through this example and you will find an god example. http://www.vogella.de/articles/GWT/article.html -- - - --  Csanyi Andras

Re: how to fire a element's event?

2011-11-28 Thread Thomas Broyer
All browsers (I believe, you'd better double-check though) implement a click() method on elements, that fire a click event as if the user actually clicked, so either you call it with JSNI, or you cast your Element to a ButtonElement or InputElement and call its click() method: public static