Example usage for com.google.gwt.resources.client CssResource ensureInjected

List of usage examples for com.google.gwt.resources.client CssResource ensureInjected

Introduction

In this page you can find the example usage for com.google.gwt.resources.client CssResource ensureInjected.

Prototype

boolean ensureInjected();

Source Link

Document

Calls com.google.gwt.dom.client.StyleInjector#injectStylesheet(String) to inject the contents of the CssResource into the DOM.

Usage

From source file:com.ait.tooling.nativetools.client.util.Client.java

License:Open Source License

public final Client injectStyle(final CssResource css) {
    css.ensureInjected();

    return this;
}

From source file:info.piwai.rockslide.client.PresentationBuilder.java

License:Apache License

public void inject() {
    String showNotes = Location.getParameter(SHOW_NOTES_PARAM);
    if ("true".equals(showNotes)) {
        ShowNotesViewer showNotesViewer = new ShowNotesViewer();
        showNotesViewer.load();/*w ww .ja v a2  s. c o m*/
    } else {
        for (CssResource cssResource : presentationCssResources) {
            cssResource.ensureInjected();
        }
        SlideViewer slideViewer = new SlideViewer();
        slideViewer.load(chapters, header);
    }
}