cssresource

How to use imported css styles in GWT correctly

Imagine you created the following simple widget with UiBinder: <!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent"&gt; <ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" xmlns:g="urn:import:com.google.gwt.user.client.ui"> <ui:style type="my.package.Widget1.Widget1Style"> .childWidgetStyle { ...

GWT CssResource Customization

I'm writing a GWT widget using UIBinder and MVP. The widget's default styles are defined in TheWidgetView.ui.xml: <ui:style type="com.widgetlib.spinner.display.TheWidgetView.MyStyle"> .textbox { border: 1px solid #red; } .important { font-weight: bold; } </ui:style> The widget's CssResource interface is...

Basic arithmatic in GWT CssResource

I'm looking for a way to do something like this: // style.css @def borderSize '2px'; .style { width: borderSize + 2; height: borderSize + 2; } where the width and height attributes would end up having values of 4px. ...

GWT: How to access in one stylesheet constants defined in another stylesheet from the same ClientBundle

This problem is best described with an example. I have the following ClientBundle in my GWT app: interface Resources extends ClientBundle { public static final Resources INSTANCE = GWT.create(Resources.class); @Source("defines.css") Defines defines(); @Source("appStyle.css") @CssResource.NotStrict Style style(...

How to get GWT CSSResource to parse not() selectors

I realize that the CSS parser that GWT uses will only handle CSS2, but I am targeting iPhone Safari, so I want to be able to use some of the CSS3 stuff. For properties, I have been fine using the literal function provided by GWT, but I'm having trouble with CSS3 selectors - particularly the not() pseudo-class. I have a bit of CSS like ...

Need app-wide CSS constants in GWT

Hi. I'd like to define some colours as constants in a GWT CssResource, and use those constants throughout my application; but I don't know how to do that. I'll tell you what what I've tried. I've created a ClientBundle and a CssResource as follows: public interface Resources extends ClientBundle { public interface MyStyle extends Css...