com.extjs.gxt.ui.client.util
Class CSS

java.lang.Object
  extended by com.extjs.gxt.ui.client.util.CSS

public class CSS
extends java.lang.Object

Provides functions for removing and adding stylesheets.


Constructor Summary
CSS()
           
 
Method Summary
static void addStyleSheet(java.lang.String id, java.lang.String url)
          Adds a stylesheet to the document.
static void removeStyleSheet(java.lang.String id)
          Removes a style or link tag by id.
static void setRules(com.google.gwt.user.client.Element style, java.lang.String cssStr)
          Adds a rules string in a <dstyle><d/style> element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSS

public CSS()
Method Detail

removeStyleSheet

public static void removeStyleSheet(java.lang.String id)
Removes a style or link tag by id.

Parameters:
id - the id of the tag

addStyleSheet

public static void addStyleSheet(java.lang.String id,
                                 java.lang.String url)
Adds a stylesheet to the document.

Parameters:
id - the id
url - the stylesheet url

setRules

public static void setRules(com.google.gwt.user.client.Element style,
                            java.lang.String cssStr)
Adds a rules string in a <dstyle><d/style> element.

Parameters:
style - the <dstyle><d/style> element
cssStr - the rules string