but there are 3rd party apis to do this
On Aug 24, 10:55 am, Paul Robinson <[email protected]> wrote:
> Reflection is not supported in GWT.
>
> 李静 wrote:
> > 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 <[email protected]
> > <mailto:[email protected]>>
>
> > 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 [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
-~----------~----~----~----~------~----~------~--~---