Method Summary |
|
public void | append(Rule r) Appends a rule to the stylesheet. |
public void | clear() Clears the content. |
public HashMap | getClassMap() Return a Map which maps from class attribute values to ExtendedSelector[] of potential rules
that could match an element which has a class attribute including the given style
class name. |
public HashMap | getIdMap() Return a Map which maps from element ids to ExtendedSelector[] of potential rules
that could match an element with the given id attribute (obviously the rules
may specify additional constraints such as descendant selectors etc. |
public SACMediaList | getMedia() Returns the media to use to compute the styles. |
public StyleSheet | getParent() Returns the parent sheet. |
public Rule[] | getRemainingRules() Return an array of rules that do not fall into the tag, class or id list of
rules. |
public Rule | getRule(int i) Returns the rule at the given index. |
public int | getSize() Returns the number of rules. |
public HashMap | getTagMap() Return a Map which maps from tag names to ExtendedSelector[] of potential rules
that could match an element of the given tag name (obviously the rules
may specify additional constraints such as descendant selectors etc. |
public String | getTitle() Returns the title of this style-sheet. |
public boolean | isAlternate() Tells whether or not this stylesheet is alternate. |
public void | setAlternate(boolean b) Sets the 'alternate' attribute of this style-sheet. |
public void | setMedia(SACMediaList m) Sets the media to use to compute the styles. |
public void | setParent(StyleSheet ss) Sets the parent sheet. |
public void | setTitle(String t) Sets the 'title' attribute of this style-sheet. |
public void | setupFilters() Process the full set of rules in this stylesheet and try to set up the rule filter
data structures such that the tag map, class map, etc. |
public String | toString(CSSEngine eng) Returns a printable representation of this style-sheet. |
public String | toString() |