Tuesday, July 12, 2011

Re: FlexTable and clickHandler depreciated?

I tested the code with GWT 2.3 and I do not get any warnings.
Try a "Project->Clean.." and/or "Project->Build All" in Eclipse.
Regards,
Johan

On Jul 12, 11: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+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


Real Estate