Revision: 6761
Author: [email protected]
Date: Mon Nov 9 07:00:31 2009
Log: Edited wiki page through web user interface.
http://code.google.com/p/google-web-toolkit/source/detail?r=6761
Modified:
/wiki/CssResource.wiki
=======================================
--- /wiki/CssResource.wiki Wed Oct 28 09:08:06 2009
+++ /wiki/CssResource.wiki Mon Nov 9 07:00:31 2009
@@ -41,8 +41,9 @@
1 Declare a method that returns CssResource or a subtype in an
ClientBundle
1 When the bundle type is generated with `GWT.create()` a Java
expression that evaluates to the contents of the stylesheets will be created
* Except in the simplest case where the Java expression is a string
literal, it is generally not the case that a CSS file could be generated
into the module output
- 1 At runtime, call `CssResource.getText()` to retrieve the contents of
the stylesheet
- * This will typically be combined with StyleInjector
+ 1 At runtime, call `CssResource.ensureInjected()` to inject the contents
of the stylesheet
+ * This method is safe to call multiple times, as subsequent
invocations will be a no-op
+ * The recommended pattern is to call `ensureInjected()` in the static
initializer of your various widget types
=Features=
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---