Re: Fire a button click event programmatically
The GWT Button Widget is actually an HTML button object; it exposes
button.click():
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.
On Dec 8, 9:59 pm, Gaurav Vaish <gaurav.va...@gmail.com> wrote:
> Native javascript:
>
> btnElement.click()
>
> --
> Happy Hacking,
> Gaurav Vaishhttp://www.mastergaurav.com
>
> On Dec 9, 4:42 am, Nick Newman <nick.x.new...@gmail.com> 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 <zhongl...@gmail.com> 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 google-web-toolkit@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscribe@googlegroups.com<google-web-toolkit%2Bunsubs cribe@googlegroups.com>
> > > .
> > > 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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home