In that case you need to use switch case after you get the class name, to match all the Widget types.
hope this would help you. ~ Prabu On Tue, May 5, 2009 at 6:12 AM, matttai <[email protected]> wrote: > > Hi guys, here is my problem. How do i get the type of a widget and > cast it. I am currently trying something like this but of course it > does not work. Any help will be appreciated. Thanks! > > for(Widget widget:array) > { > ((this.getParent().getClass().getName()) widget).someMethod > (this); > } > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
