com.webrenderer.dom
Interface IStyleSheet


public interface IStyleSheet

Stores a Style Sheet Element in the DOM tree


Method Summary
 IStyleRule addRule(java.lang.String selector, java.lang.String cssText)
          Creates a new rule and adds it to the stylesheet.
 IStyleRule getRule(int pos)
          Gets the rule at position pos
 boolean isDisabled()
          Gets if the current styleSheet is disabled.
 int rulesLength()
          Retruns the number of rules in this styleSheet
 void setDisabled(boolean disable)
          Set whether to disable this stylesheet
 

Method Detail

getRule

public IStyleRule getRule(int pos)
Gets the rule at position pos


rulesLength

public int rulesLength()
Retruns the number of rules in this styleSheet


setDisabled

public void setDisabled(boolean disable)
Set whether to disable this stylesheet

Parameters:
disable - true to disable, false to enable

isDisabled

public boolean isDisabled()
Gets if the current styleSheet is disabled.

Returns:
true if StyleSheet is disabled

addRule

public IStyleRule addRule(java.lang.String selector,
                          java.lang.String cssText)
Creates a new rule and adds it to the stylesheet.
e.g. addRule("PRE","font:14px verdana"); will add the rule PRE { font: 14px verdana} to the styleSheet

Parameters:
selector - The selector text for this rule
cssText - The css text for this rule
Returns:
the rule added to the stylesheet