That seems like what I need thanks :) Dont suppose its possible to create an AbstractImagePrototype at run time? (say from an existing image or url)
The widget I'm making needs to be updatable, and it would be handy if I could add to that List<AbstractImagePrototype> array. (rather then setting up a seperate array for runtime added images then using setURL with them). On Mar 8, 11:03 pm, Thomas Broyer <[email protected]> wrote: > On 8 mar, 15:10, darkflame <[email protected]> wrote: > > > 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. > > Use AbstractImagePrototype.applyTo(...) to update an Image object so > it displays an image from an ImageBundle. Note that this use case is > explicitly stated in the AbstractImagePrototype's JavaDoc. > > > Lets say I have an arraylist of premade image widgets;; > > > ArrayList<Image> Frames = new ArrayList<Image>(); > > Just use a List<AbstractImagePrototype> instead. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
