I have a GWT 2.0 ToggleButton that I have styled from a ResourceBundle:
ToggleButton tb = new ToggleButton();
tb.setStyleName(MyResources.INSTANCE.MyCssResource().TogBut());
The client side implementation then adds additional styles to the "TogBut-up" and "TogBut-down" for the styling of the states of the button.
I can't however add a style like "TogBut-down" to my css because that is an invalid name for a field in my CssResource subclass interface.
Does anyone know what best practice is in this scenario? Should I just avoid obfuscation and resource bundles all together?