All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.gwtbootstrap.timepicker.client.ui.resources.TimepickerResourceInjector Maven / Gradle / Ivy

The newest version!
package com.github.gwtbootstrap.timepicker.client.ui.resources;

import com.github.gwtbootstrap.client.ui.resources.JavaScriptInjector;
import com.github.gwtbootstrap.client.ui.resources.ResourceInjector;
import com.google.gwt.resources.client.TextResource;

/**
 * Utility class to inject our resources into modules page. Use it to inject
 * JavaScript and CSS files.
 *
 * @author Carlos Alexandro Becker
 * @author Joshua Godi
 * @since 2.3.2.0
 */
public class TimepickerResourceInjector {

    /**
     * Injects the required CSS styles and JavaScript files into the document header.
     * 
     * It's for NoStyle Module.
     * 
*/ public static void configureWithCssFile() { ResourceInjector.injectResourceCssAsFile("bootstrap-timepicker.css"); configure(); } /** * Injects the required CSS styles and JavaScript files into the document * header. */ public static void configure() { Resources r = Resources.RESOURCES; injectJs(r.timepickerJs()); } private static void injectJs(TextResource r) { JavaScriptInjector.inject(r.getText()); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy