org.stjs.javascript
Class StyleSheet

java.lang.Object
  extended by org.stjs.javascript.StyleSheet

public abstract class StyleSheet
extends Object


Field Summary
 org.stjs.javascript.Array<org.w3c.dom.css.CSSStyleRule> cssRules
          all the rules of this stylesheet.
 String cssText
          Gets the whole declaration.
 Boolean disabled
          Enables you to enable or disable the style Sheet
 String href
          Source URL of the string
 org.stjs.javascript.Array<org.w3c.dom.css.CSSStyleRule> rules
          Same as cssRules but for IE
 
Constructor Summary
StyleSheet()
           
 
Method Summary
abstract  void addRule(String selector, String rule)
          Works in IE and Webkit browsers
abstract  void addRule(String selector, String rule, Integer where)
          Works in IE and Webkit browsers
abstract  void deleteRule(Integer rule_number)
          Works in all Browsers but not IE below v9
abstract  void insertRule(String rule, Integer where)
          The complete rule goes into the first parameter Works in all Browsers but not IE below v9
abstract  void removeRule(Integer rule_number)
          Works in IE and Webkit browsers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cssText

public String cssText
Gets the whole declaration. Works in IE


disabled

public Boolean disabled
Enables you to enable or disable the style Sheet


href

public String href
Source URL of the string


cssRules

public org.stjs.javascript.Array<org.w3c.dom.css.CSSStyleRule> cssRules
all the rules of this stylesheet. Does not work in IE up to IE8


rules

public org.stjs.javascript.Array<org.w3c.dom.css.CSSStyleRule> rules
Same as cssRules but for IE

Constructor Detail

StyleSheet

public StyleSheet()
Method Detail

addRule

public abstract void addRule(String selector,
                             String rule)
Works in IE and Webkit browsers

Parameters:
selector -
rule -

addRule

public abstract void addRule(String selector,
                             String rule,
                             Integer where)
Works in IE and Webkit browsers

Parameters:
selector -
rule -
where -

insertRule

public abstract void insertRule(String rule,
                                Integer where)
The complete rule goes into the first parameter Works in all Browsers but not IE below v9

Parameters:
rule -
where -

deleteRule

public abstract void deleteRule(Integer rule_number)
Works in all Browsers but not IE below v9

Parameters:
rule_number -

removeRule

public abstract void removeRule(Integer rule_number)
Works in IE and Webkit browsers

Parameters:
rule_number -


Copyright © 2013. All Rights Reserved.