Re: using "applyto()" with a Composite initWidget(Image);

2014-01-06 Thread darkflame
Ah, it seems; imageContents = SetFrames[0].createImage(); initWidget(imageContents); Fixs the problem. Interesting...applyTo() doesnt work on a image thats created ( = new Image() ) but not set? On Monday, January 6, 2014 3:49:51 PM UTC+1, darkflame wrote: > > > Pre-amble: > I have been using

using "applyto()" with a Composite initWidget(Image);

2014-01-06 Thread darkflame
Pre-amble: I have been using an AnimatedIcon class I made myself for a few years now. It extended Image and had two constructors; 1. Takes an ImageURL and a number of frames, and use's setURL to cycle over them (foo1.png,foo2.png etc) 2. Takes a AbstractImagePrototype[] and uses applyto(this) to