I solved my problem using the following solution:

 onClick(htmlLink);  =>> htmlLink.fireEvent( new ClickEvent(){} );

I hope this solution will help everybody who has same my problem.

If you have any solutions else, please reply for discussing ^^


On Apr 14, 10:25 am, scono1986 <[email protected]> wrote:
> In version gwt 1.5. I used onClick(Widget w):
>
> Ex: when I call setPicture method, I call click action of htmlLink
> throught onClick(htmlLink):
>
> In gwt 1.5:
>
> public void setPicture(String url) {
>                onClick(htmlLink);
>
>         }
>
>         public void onClick(Widget sender) {
>                 if (sender == htmlLink) {
>                         resetForm();
>                 }
>         }
>
> In gwt 2.2:
>         public void onClick(ClickEvent ce) {
>                 Widget sender = (Widget) ce.getSource();
>                 if (sender == htmlLink) {
>                         resetForm();
>                 }
>         }
>
> So in version gwt 2.2, How do I call onClick(clickevent) ? Where is
> the clickEvent of a specific widget gotten ?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to