public class CssInjector extends Object implements com.google.gwt.dev.jjs.MagicMethodGenerator
X_Html.injectCss(Class, xapi.ui.api.StyleService)
This magic method will replace the call to X_Html.injectStyle with one or more calls
to StyleService.addCss(String, int), matching all style defined on the Class,
it's respective methods, and all annotated supertypes.
It is recommended to do this statically in the classes themselves, so that you get
"just in time injection" so that referencing the class injects the css as needed,
and not referencing the class prevents the inclusion of css that you don't need.
| Constructor and Description |
|---|
CssInjector() |
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.dev.jjs.ast.JExpression |
injectMagic(com.google.gwt.core.ext.TreeLogger logger,
com.google.gwt.dev.jjs.ast.JMethodCall methodCall,
com.google.gwt.dev.jjs.ast.JMethod enclosingMethod,
com.google.gwt.dev.jjs.ast.Context context,
com.google.gwt.dev.jjs.UnifyAstView ast) |
public com.google.gwt.dev.jjs.ast.JExpression injectMagic(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.dev.jjs.ast.JMethodCall methodCall, com.google.gwt.dev.jjs.ast.JMethod enclosingMethod, com.google.gwt.dev.jjs.ast.Context context, com.google.gwt.dev.jjs.UnifyAstView ast) throws com.google.gwt.core.ext.UnableToCompleteException
injectMagic in interface com.google.gwt.dev.jjs.MagicMethodGeneratorcom.google.gwt.core.ext.UnableToCompleteExceptionCopyright © December 07, 2012–2015 The Internet Party. All rights reserved.