public interface IStyleSheet
Modifier and Type | Method and Description |
---|---|
IStyleRule |
addRule(String selector,
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()
Returns the number of rules in this styleSheet
|
void |
setDisabled(boolean disable)
Set whether to disable this stylesheet
|
IStyleRule getRule(int pos)
int rulesLength()
void setDisabled(boolean disable)
disable
- true to disable, false to enableboolean isDisabled()
IStyleRule addRule(String selector, String cssText)
selector
- The selector text for this rulecssText
- The css text for this rule