Example usage for com.google.gwt.dom.client LinkElement setPropertyString

List of usage examples for com.google.gwt.dom.client LinkElement setPropertyString

Introduction

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

Prototype

@Override
    public void setPropertyString(String name, String value) 

Source Link

Usage

From source file:org.ow2.proactive_grid_cloud_portal.common.client.JSUtil.java

License:Open Source License

public static void addStyle(String path) {
    Element head = Document.get().getElementsByTagName("head").getItem(0);
    LinkElement style = Document.get().createLinkElement();
    style.setPropertyString("language", "text/css");
    style.setRel("stylesheet");
    style.setHref(path);/*  w  w  w .  j a  v  a2  s .  c  o m*/
    head.appendChild(style);
}