Ruleset, and has an origin--either user agent, user, or author. A
Stylesheet can only be instantiated from a SAC CSSStyleSheet instance-- this
would be the output of a SAC-compliant parser after parsing a CSS stream or
source. A Stylesheet is immutable; after instantiation, you can query the
origin and the Ruleset, but not modify either of them.
| Modifier and Type | Field and Description |
|---|---|
| private final List | _contents
May contain page rules, media rules or rulesets. |
| private final List | |
| private final List | |
| private final int | _origin
user-agent, user or author from |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | Stylesheet(String uri, int
user-agent, user or author from origin)StylesheetInfoCreates a new instance of Stylesheet |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public List | |
| public List | |
| public List | |
| public int | Returns: The origin value: user-agent, user or author fromStylesheetInfoImplements com. Gets the origin attribute of the Stylesheet object |
| public String |
| _contents | back to summary |
|---|---|
| private final List<Object> _contents May contain page rules, media rules or rulesets. | |
| _fontFaceRules | back to summary |
|---|---|
| private final List<FontFaceRule> _fontFaceRules | |
| _importRules | back to summary |
|---|---|
| private final List<StylesheetInfo> _importRules | |
| _origin | back to summary |
|---|---|
| private final int _origin user-agent, user or author from | |
| _uri | back to summary |
|---|---|
| private final String _uri | |
| Stylesheet | back to summary |
|---|---|
| public Stylesheet(String uri, int origin) Creates a new instance of Stylesheet
| |
| addContent | back to summary |
|---|---|
| public void addContent(Ruleset ruleset) Implements com.
| |
| addContent | back to summary |
|---|---|
| public void addContent(MediaRule rule) | |
| addContent | back to summary |
|---|---|
| public void addContent(PageRule rule) | |
| addFontFaceRule | back to summary |
|---|---|
| public void addFontFaceRule(FontFaceRule rule) | |
| addImportRule | back to summary |
|---|---|
| public void addImportRule(StylesheetInfo info) | |
| getContents | back to summary |
|---|---|
| public List | |
| getFontFaceRules | back to summary |
|---|---|
| public List | |
| getImportRules | back to summary |
|---|---|
| public List | |
| getOrigin | back to summary |
|---|---|
| public int getOrigin() Implements com. Gets the origin attribute of the Stylesheet object
| |
| getURI | back to summary |
|---|---|
| public String getURI() Gets the URI of the Stylesheet object
| |