List of usage examples for com.google.gwt.dom.client LinkElement setPropertyString
@Override public void setPropertyString(String name, String value)
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); }