Author: galgwt.reviews
Date: Fri Jul 3 08:45:52 2009
New Revision: 5665
Modified:
wiki/CssResource.wiki
Log:
Edited wiki page through web user interface.
Modified: wiki/CssResource.wiki
==============================================================================
--- wiki/CssResource.wiki (original)
+++ wiki/CssResource.wiki Fri Jul 3 08:45:52 2009
@@ -64,6 +64,31 @@
}
}}}
* Calling `small()` would return the value `1`.
+ * `...@def` rules can be accessed as a String as well. You can retrieve
the two definitions above with:
+{{{
+interface MyResources extends CssResource {
+ String small();
+ String black();
+}
+}}}
+ * Calling `small()` returns "1px"
+ * Calling `black()` returns "#000"
+ * The Generator will not allow you to declare an `...@def` rule with the
same name as a class, unless you annotate method to retrieve the class with
the `...@classname` annotation.
+{{{
+...@def myIdent 10px;
+.myIdent {
+ ...
+}
+
+interface MyResources extends CssResource {
+ String myIdent();
+
+ @ClassName("myIdent")
+ String myIdentClass();
+}
+}}}
+ * Calling `myIdent()` returns @def value "10px"
+ * Calling `myIdentClass()` returns the obfuscated class name
for .myIdent
== Runtime substitution ==
(*Working*)
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---