Are you using a full palate, or just a selection of colours?

If its a full palate, Id make a png and use that in a bundle. Then
work out the RGB of where the mouse is over based on its x/y relative
to the palate.
 (or just direct link with Image.setURL rather then use the bundle -
the point of bundles is for it to make imagestrips automatically for
you and thus save on loading, if theres only one image theres not as
much point. It might inline the image as a data url and provide a
fullback, which could save loading on smaller images...probably not
worth it in this case)

If its just a selection of presets colours, however, Id build it at
runtime. Would make it much easier to adjust later if a color needs to
be changed or added.

I've seen both used for both, however. I don't think theres a
preferred method as such.


~~~~~~
Reviews of anything, by anyone;
www.rateoholic.co.uk
Please try out my new site and give feedback :)



On 27 January 2012 17:23, Ben Hegarty <heg...@gmail.com> wrote:
> Hi Guys,
> I'm working on creating a new widget for the colour selection, as I'm new
> to the whole GWT/web development stuff, I'm just wondering if the preferred
> method for creating a widget is by defining it in the clientbundle xml or
> building it at run time?
> Regards

Reply via email to