How to make label auto click

2012-04-03 Thread Deepak Singh
Hi, I have wrapped a div into Label. Added clickhandler to label. Now i want that at some point of time, this label should be autoclicked but we dont have anything like click() method for label as we have for button.click(). So how can i achieve this ? Thanks Deepak Singh -- You received this

Re: How to make label auto click

2012-04-03 Thread Hilco Wijbenga
On 3 April 2012 10:57, Deepak Singh deepaksingh...@gmail.com wrote: I have wrapped a div into Label. Added clickhandler to label. Why? If you want to use a container, then I would suggest SimplePanel or FlowPanel. I would keep Labels for displaying simple text. Now i want that at some point of

Re: How to make label auto click

2012-04-03 Thread Boris_siroB
GWT doesn't really support programmatically creating browser events. Not quite true. See this SO posthttp://stackoverflow.com/questions/1238355/firing-click-event-from-code-in-gwt. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To

Re: How to make label auto click

2012-04-03 Thread Deepak Singh
No probs. I solved my prob by changing Div to HtmlPanel. Thanks for your support. On Wed, Apr 4, 2012 at 1:08 AM, Boris_siroB boris.brud...@gmail.com wrote: GWT doesn't really support programmatically creating browser events. Not quite true. See this SO

Re: How to make label auto click

2012-04-03 Thread Hilco Wijbenga
On 3 April 2012 12:38, Boris_siroB boris.brud...@gmail.com wrote: GWT doesn't really support programmatically creating browser events. Not quite true. See this SO post. I wrote doesn't really, not doesn't. :-) Still, all this mucking about in the DOM is very hard to (unit) test. In most cases,