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.
-- 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
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment