Well, let's suppose I want to make an animation, consisting in fade
from red to white the background of a textbox
The color must go from #FF0000 to #FFFFFF
The last 4 digitis must go paired, f.e. at middle a valid value will
be #FF8888
My code is
@Override
protected void onUpdate(double v) {
// bgsubcolor will have one of the RGB values
String bgsubcolor = Integer.toHexString((int)( v *
255)).toUpperCase();
// bg will be the background style
String bg = "background-color: #FF" + bgsubcolor +
bgsubcolor;
GWT.log("style -> " + bg, null);
tb.getElement().setAttribute("style", bg);
}
Well, lets see result log:
(start)
background-color: #FF00
.
.
.
background-color: #FFDD
.
.
.
background-color: #FFFF
background-color: #FF1010
.
.
.
background-color: #FF8C8C
.
.
.
background-color: #FFFEFE
(end)
WTF ?????
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---