Hi all,
I've been playing with @def and it's really nice. But it gets even
better because you can access the corresponding value in your Java
code.
my.css:
@def BORDER_WIDTH 1px;
MyCss.java:
interface MyCss extends CssResource {
int BORDER_WIDTH(); // Returns 1.
}
The only issue I have with this is that the naming conventions don't
play nice. In my.css I'd like to use BORDER_WIDTH (or better yet
BORDER-WIDTH) but in Java I'd like to use getBorderWidth.
For CSS class names we have the very useful @ClassName. Not
surprisingly, this does not work for @def. I'd like to do something
similar to
my.css:
@def BORDER-WIDTH 1px;
MyCss.java:
interface MyCss extends CssResource {
@DefName("BORDER-WIDTH")
int getBorderWidth(); // Returns 1.
}
Is there a way to achieve something like this?
Cheers,
Hilco
--
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.