Good day GWT,

It seems to me that these method names are misnomers, as neither HTML nor 
CSS provides the means to assign a name to a style.

What these methods are actually doing is modifying the CSS class name(s) 
that will be applied to the UI object's HTML element. CSS class names are 
not the names of styles, they are merely keys used in CSS selectors to 
determine which style specifications to apply to any given element. The 
same CSS class name can be referenced by multiple selectors and indeed from 
multiple stylesheets. Thus there is no sense in which CSS class names are 
the identifying names of styles; to me, logic dictates that these methods 
should have been named UiObject.[get|set|add|remove][Dependent]CssClass().

Google libraries are normally very careful, deliberate and precise about 
the choice of type and member names, so I'm truly puzzled by these.

Can anyone shed any light on this decision?

Thanks,

--A

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/fF8WbEDuMYAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to