I have a label with lbl.setStyleName("somestyle"), and later on when that label becomes clickable I want to change the style to lbl.setStyleName("someotherstyle"), but I can't seem to do this seemingly simple task.
Here's what I've tried:
...
... (code)
...
The Window.alert presents the correctly changed style, but nothing happens at all on the page itself. That is, the style doesn't change. It's unfortunate.
Any help would be greatly appreciated
Thanks
Here's what I've tried:
Code:
lbl.setStyleName("styledFont");
... (code)
...
Code:
lbl.setStyleName("styledFontClickable"); Window.alert(lbl.getStyleName()); lbl.markForRedraw();
Any help would be greatly appreciated
Thanks
Comment