I'm trying to use a set of common @def statements across multiple
child projects. I cannot directly reference the css file in the
uiBinder - its in another project. I need a way to set the <ui:style>
tag to import / use / set source the css with @def statements from a
CssResource inside of a common ClientBundle. The only fields
available inside <ui:style> AFAIK are type, src, and field. Type
requires that an interface be implemented, and src can only do paths
to a css file. I need to point the src to a CssResource but this
doesn't seem possible.
(as an aside: I couldn't find a javadoc for any of the <ui:X> tags -
they need to be explicitly available somewhere)
----definitions.css----
@def COLOR_ONE #3B5998;
@def COLOR_TWO #DFE4EE;
@def COLOR_THREE #FFFFFF;
@def COLOR_FOUR #6792AB;
@def COLOR_FIVE #000000;
----CommonBundle----
public interface CommonBundle extends ClientBundle {
@Source("definitions.css")
Definitions definitions();
@Shared
public interface Definitions extends CssResource {
String COLOR_ONE();
String COLOR_TWO();
String COLOR_THREE();
String COLOR_FOUR();
String COLOR_FIVE();
}
---Doesn't work----
<ui:style type="CommonBundle.Definitions">
.outerLabel {
color: COLOR_THREE;
}
</ui:style>
---Doesn't work----
<ui:style src="CommonBundle.Definitions">
.outerLabel {
color: COLOR_THREE;
}
</ui:style>
--- Would like to use ----
<ui:with field='common'
type='agt.fathom.ifathom.common.client.CommonBundle' />
<ui:style src="{common.definitions}">
.outerLabel {
color: COLOR_THREE;
}
</ui:style>
Is there a workaround / solution to this that I just don't know? I
can't find anything searching through the forum posts ...
Thanks,
John
--
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.