It works with button.click()

Thanks a lot!

On Dec 9, 1:17 am, Jim Douglas <[email protected]> wrote:
> The GWT Button Widget is actually an HTML button object; it exposes
> button.click():
>
> http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/g...()
>
> But GWT CustomButtons (PushButton/ToggleButton) are really styled
> DIVs, not HTML button objects, so the native click() method isn't an
> option.  For CustomButtons, you have to write code that invokes
> whatever it is you want to do when the user clicks the button.
>
> http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/g...
>
> On Dec 8, 9:59 pm, Gaurav Vaish <[email protected]> wrote:
>
> > Native javascript:
>
> > btnElement.click()
>
> > --
> > Happy Hacking,
> > Gaurav Vaishhttp://www.mastergaurav.com
>
> > On Dec 9, 4:42 am, Nick Newman <[email protected]> wrote:
>
> > > Might be simpler and clearer to have the button click event call a method,
> > > and simply call that method directly.
>
> > > Nick
>
> > > On Wed, Dec 8, 2010 at 4:27 PM, zhong <[email protected]> wrote:
> > > > Hi,
>
> > > > Is there a way to fire a button click event programmatically?
>
> > > > Many thanks,
> > > > Zhong
>
> > > > --
> > > > 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]<google-web-toolkit%2Bunsubs
> > > >  [email protected]>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-web-toolkit?hl=en.

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