Both ar equivalent.
ui:style element is backedup by Client
Bundle<http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html#CssResource>
.
interface MyResources extends CssResource {
String myIdent();
}
So it could be represented in UIBinder as
<ui:style>
.myIdent { text-align: right; }
</ui:style>
Basicly *{style.myIdent}* returns string for CSS class. To specify CSS of
Widget you use
styleName<http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#Hello_Stylish_World>
attribute
in UIBinder which is equivalent of
Widget#setStyleName(String)<http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/user/client/ui/UIObject.html#setStyleName(java.lang.String)>.
But div tag is not a Widget so you use *class* attribute to specify CSS
class names.
--
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.