On 10 juin, 23:44, mrpantsuit <[email protected]> wrote:
> This might be a stupid question, but can I use the same Image created
> from an ImageBundle in multiple places on my page? I guess the more
> general question is can I use the same Image in multiple places in my
> page. I assume so.
Image is a widget, so you can't reuse the same Image object (it'll be
automatically removed from where it was before being added).
But you can of course reuse the AbstractImagePrototype and call
getImage() each time you need the Image.
...or you could use getHTML() and reuse it at will with setHTML on the
appropriate widgets (not being an Image widget, you won't have event
handlers though)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---