What i would like to do is to read an css file from a GET request on the client side, and then i would like to parse it to check all the classes.
The problem is that I need to implement CSSOMParser for that, and here are the imports
import org.w3c.dom.css.CSSRule;
import org.w3c.dom.css.CSSRuleList;
import org.w3c.dom.css.CSSStyleRule;
import org.w3c.dom.css.CSSStyleSheet;
import com.steadystate.css.parser.CSSOMParser;
the problem is that none of those classes ale probably javascript compilant, so they don’t want to compile if they’re on the client side. Is there a way to get it done ?
The browser is in-itself a CSS Parser, and provides ways to access the style sheets. See http://www.howtocreate.co.uk/tutorials/javascript/domstylesheets for an introduction.
Since you want to write GWT code to parse the classes, here’s what I’d recommend –