Panels do not have event handlers in general, you can use FocusPanel or force the event on the FlexTable with panel.addHandler(ClickEvent.getType(), clickHandler);
On Tue, Jul 12, 2011 at 6:32 PM, seven.reeds <seven.re...@gmail.com> wrote: > Hi, > > gwt: 2.3.0 > eclipse: 3.6.2 > > I must be doing something wrong. I have a FlexTable and I try to add > a ClickHandler but I am told it is depreciated. > > FlexTable panel = new FlexTable(); > > SponsorrList() { > initWidget(panel); > > panel.setStyleName("SpeakerList"); > panel.addClickHandler(new ClickHandler() { > @Override > public void onClick(ClickEvent event) { > ... > } > }); > > } > > > If I mouse over "new ClickHandler" eclipse suggests adding a Suppress > Depreciation pragma. If I mouse over "addClickHandler" I see: > > The method addClickHandler(ClickHandler) in the type HTMLTable > is not applicable for the arguments (new ClickHandler(){}) > > I do not understand. > > sr > > -- > 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+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.