Hi everybody,

I am trying to change the image of an image cell on click.

My code looks like this:

final TrafficLightCell imageCell = new TrafficLightCell();

                Column<Somewhat, ImageResource> potentiallyAffectedColumn = new
Column<Somewhat, ImageResource>(
                                imageCell) {
                        @Override
                        public ImageResource getValue(Somewhat object) {
                                return resources.blank_bubble();
                        }
                };

                potentiallyAffectedColumn.setFieldUpdater(new 
FieldUpdater<Somewhat,
ImageResource>() {
                        @Override
                        public void update(int index, Somewhat object, 
ImageResource value)
{
                                imageCell.render(null, 
resources.green_bubble(), new
SafeHtmlBuilder());
                        }
                });

This traffic light cell catches onclick events. I thought i may change
the image via render method but it obviously does not work. Can
someone give me a hint how to handle this?

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