hi, maybe you can use Reflection ; just like: Class target = ICONS.getClass(); Method m = target.getMethod(methodName, String.class); m.invoke(ICONS, parameters...); 2009/8/23 barclay allen <barclayal...@gmail.com>
> > I have an image bundle setup. > > public static final MyIcons ICONS = GWT.create(MyIcons.class); > > I can get the image with this. > ICONS.smiley_face().createImage() > > > How can I dynamically get the smiley_face image by passing a string > "smiley_face"? > > > -- 李静 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---