Reviewers: jgw,

Message:
Lays out the groundwork for
http://code.google.com/p/google-web-toolkit/issues/detail?id=3984

<ui:style source="foo.css" type="com.me.and.MyCss" /> now works. It
implies a
CssResource of type MyCss, provided by file foo.css, accessible as if it
had
ui:field="style". We generate the ClientBundle to hold it.

Tomorrow I'll make source and type optional, and allow css to appear
inside the
element body.

(Hmm. It occurs to me that using name="foo"on this and <ui:with> is
probably
wrong, and that we should instead use field on these just like
everywhere else.
Not for this patch,though.)



Description:
Lays out the groundwork for
http://code.google.com/p/google-web-toolkit/issues/detail?id=3984

<ui:style source="foo.css" type="com.me.and.MyCss" /> now works. It
implies a CssResource of type MyCss, provided by file foo.css,
accessible as if it had ui:field="style". We generate the ClientBundle
to hold it.

Tomorrow I'll make source and type optional, and allow css to appear
inside the element body.

(Hmm. It occurs to me that using name="foo"on this and <ui:with> is
probably wrong, and that we should instead use field on these just like
everywhere else. Not for this patch,though.)

Please review this at http://gwt-code-reviews.appspot.com/64801

Affected files:
   A samples/hello/src/com/google/gwt/sample/hello/client/.DS_Store
   A user/src/com/google/gwt/uibinder/client/AbstractUiBinder.java
   M user/src/com/google/gwt/uibinder/parsers/FieldInterpreter.java
   A user/src/com/google/gwt/uibinder/rebind/AbstractFieldWriter.java
   A user/src/com/google/gwt/uibinder/rebind/BundleWriter.java
   M user/src/com/google/gwt/uibinder/rebind/FieldManager.java
   M user/src/com/google/gwt/uibinder/rebind/FieldWriter.java
   A user/src/com/google/gwt/uibinder/rebind/FieldWriterOfExistingType.java
   A user/src/com/google/gwt/uibinder/rebind/FieldWriterOfGeneratedType.java
   M user/src/com/google/gwt/uibinder/rebind/UiBinderGenerator.java
   M user/src/com/google/gwt/uibinder/rebind/UiBinderParser.java
   M user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java
   M user/src/com/google/gwt/uibinder/rebind/XMLElement.java
   M user/src/com/google/gwt/uibinder/rebind/messages/MessagesWriter.java
   A user/src/com/google/gwt/uibinder/rebind/model/CssResourceGetter.java
   A user/src/com/google/gwt/uibinder/rebind/model/ImplicitBundle.java
   M user/src/com/google/gwt/uibinder/rebind/model/OwnerField.java
   M user/src/com/google/gwt/uibinder/sample/client/DomBasedUi.java
   M user/src/com/google/gwt/uibinder/sample/client/UiBinderDemo.java
   M user/src/com/google/gwt/uibinder/sample/client/WidgetBasedUi.css
   M user/src/com/google/gwt/uibinder/sample/client/WidgetBasedUi.java
   M user/src/com/google/gwt/uibinder/sample/client/WidgetBasedUi.ui.xml
   A user/src/com/google/gwt/uibinder/sample/client/WidgetBasedUiExternal.css
   A  
user/src/com/google/gwt/uibinder/sample/client/WidgetBasedUiExternalResources.java
   M  
user/src/com/google/gwt/uibinder/sample/client/WidgetBasedUiResources.java
   M user/test/com/google/gwt/uibinder/UiBinderGwtSuite.java
   M user/test/com/google/gwt/uibinder/client/UiBinderTest.java
   A user/test/com/google/gwt/uibinder/sample/client/UiBinderTest.java
   M user/test/com/google/gwt/user/client/ui/ButtonTest.java



--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to