| java.lang.Object net.mygwt.ui.client.util.CSS
CSS | public class CSS (Code) | | Provides functions for removing and adding stylesheets.
|
Method Summary | |
public static void | addStyleSheet(String id, String url) Adds a stylesheet to the document. | public static void | removeStyleSheet(String id) Removes a style or link tag by id. | native public static void | setRules(Element style, String cssStr) Adds a rules string in a <dstyle><d/style> element. |
addStyleSheet | public static void addStyleSheet(String id, String url)(Code) | | Adds a stylesheet to the document.
Parameters: id - the id Parameters: url - the stylesheet url |
removeStyleSheet | public static void removeStyleSheet(String id)(Code) | | Removes a style or link tag by id.
Parameters: id - the id of the tag |
setRules | native public static void setRules(Element style, String cssStr)(Code) | | Adds a rules string in a <dstyle><d/style> element.
Parameters: style - the <dstyle><d/style> element Parameters: cssStr - the rules string |
|
|