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
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
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