Monday, April 8, 2013

Re: Problems adding Click Handler to Grid

I had a onBrowserEvent method in my ancestor class that was consuming
the event.


On Apr 5, 4:49 pm, Michael Prentice <splak...@gmail.com> wrote:
> I just tried this:
>
>                 grid.addClickHandler(new ClickHandler() {
> public void onClick(ClickEvent event) {
> System.out.println("Grid Clicked!");
>
> }
> });
>
> And it works just fine.
>
> What Window class are you importing? I just tried it with import
> com.google.gwt.user.client.Window; and it worked fine in dev mode.
>
>
>
> On Thursday, April 4, 2013 1:27:43 PM UTC-4, skippy wrote:
>
> > I am using GWT 2,4 if that helps.
>
> > On Apr 4, 10:35 am, skippy <al.leh...@fisglobal.com> wrote:
> > > I am trying to add a Click Handler to a Grid object, but it never
> > > fires.
>
> > > tableData.addClickHandler(new ClickHandler()
> > > {
> > >      public void onClick(ClickEvent event)
> > >      {
> > >         Window.alert("I am here");
> > >       }
>
> > > });
>
> > > Any ideas would be great.
>
> > > Thanks- Hide quoted text -
>
> - Show quoted text -

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment