Dear GWT Users,
Thanks in advance for help. Ive searched the mail archives and had a good google, but cant find what im after.
I'd like to change the colour of my Cell when the user rolls over it. I thought it would be as simple as saving a class level / scope variable of SafeHtmlBuilder (when redner is called) and appending to it when onBrowserEvent is executed - but that doesnt seem to work.
public void onBrowserEvent(Context context, Element parent, Track value, NativeEvent event, ValueUpdater<Track> valueUpdater) {
super.onBrowserEvent(context, parent, value, event, valueUpdater);
if("mouseover".equals(event.getType())) {
// change colour
public void render(Context context, Track track, SafeHtmlBuilder safeHtmlBuilder) {
if (track != null) {
safeHtmlBuilder.append(template.showTrack("images/someImg.png",track.getName()));
}
}
Regards, Sam