Example usage for com.google.gwt.dom.client StyleInjector injectAtStart

List of usage examples for com.google.gwt.dom.client StyleInjector injectAtStart

Introduction

In this page you can find the example usage for com.google.gwt.dom.client StyleInjector injectAtStart.

Prototype

public static void injectAtStart(String css, boolean immediate) 

Source Link

Document

Add stylesheet data to the document as though it were declared before all stylesheets previously created by #inject(String) .

Usage

From source file:com.floatzcss.gwt.client.util.StyleInjectorUtils.java

License:Apache License

/**
 * Inject CSS resource at the start.//from  w ww. j  a  v  a2  s  . c o m
 *
 * @param resource  CSS Resource
 * @param immediate true to update DOM immediately, false before returning to the event loop
 * @return Reference for chaining
 */
public StyleInjectorUtils injectAtStart(CssResource resource, boolean immediate) {
    StyleInjector.injectAtStart(getCss(resource), immediate);
    return this;
}