Try this.
Use the 1st CSS as the base CSS where each of the widget uses
setStylePrimaryName("NamOfCssClass").
On the desired event, use setStyleName("NameOf2ndCssClass") method for
each widget. This method temporarily replaces the primary style with
this 2nd style.
Now if you want to switch back to original CSS formatting (the primary
one) use the method removeStyleName("NameOf2ndCssClass") method for
each widget.
Best,
-Ankit
On Jul 26, 4:35 pm, sanjay kanwar <[email protected]> wrote:
> Hi There,
>
> I have two Css background color and i want to show one color at a time when
> a certain kind of condition fulfill. Confused how to proceeed. any help or
> example (sample) would be great.
> Thx in Advance
>
> --
> Regards
> Sam
--
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.