When setting css attributes from javascript (and hence also GWT), you
must use camel case. That means "backgroundColor" instead of
"background-color".
You might also like to use the Style object, so you can write (IIRC):
getElement().getStyle().setProperty("backgroundColor", color);
better still (although I suspect only with trunk):
getElement().getStyle().setBackgroundColor(color);
Paul