Awhile ago I made a custom widget that was an extention of Image.
It basicaly let me animate the image by flicking between Urls.
You can see it in practice here;
http://www.cuyperscode.nl/CuypersCode2/CCIIstart.html
(just go log-on as guest, the rest is in dutch...rolling the mouse
over the icons on the left to demo).

This seems to work nicely, but flicking between url's to change a
small image is clearly not a good loading practice.
So I'm updateing my widget to work with ImageBundles.

However, I'm not actualy sure how to extend the image class to switch
between images if I dont change the url.

Lets say I have an arraylist of premade image widgets;;

ArrayList<Image> Frames = new ArrayList<Image>();

And I then pass this to the custom widget in its constructor.

How would I then set the current image displayed to an item in the
array? (say to Frames.getItem(4) )
Is this even possible?

(My first thought was to not extend image but to change it to a
SimplePanel, with the setWidget being used to switch between premade
images, but when I tried that I run into problems getting Click/Mouse
listeners set up, as well as responsiveness and layout issues. So if
possible I want to keep my widget an extension of Image, rather then
anything else...after all, in most of the rest of my code I'm treating
it as an image).




--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to