|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xhtmlrenderer.css.sheet.Stylesheet
public class Stylesheet
A representation of a CSS style sheet. A Stylesheet has the sheet's rules in
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.
Constructor Summary | |
---|---|
Stylesheet(String uri,
int origin)
Creates a new instance of Stylesheet |
Method Summary | |
---|---|
void |
addContent(MediaRule rule)
|
void |
addContent(PageRule rule)
|
void |
addContent(Ruleset ruleset)
|
void |
addFontFaceRule(FontFaceRule rule)
|
void |
addImportRule(StylesheetInfo info)
|
List |
getContents()
|
List |
getFontFaceRules()
|
List |
getImportRules()
|
int |
getOrigin()
Gets the origin attribute of the Stylesheet object |
String |
getURI()
Gets the URI of the Stylesheet object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Stylesheet(String uri, int origin)
uri
- origin
- Method Detail |
---|
public int getOrigin()
getOrigin
in interface RulesetContainer
public String getURI()
public void addContent(Ruleset ruleset)
addContent
in interface RulesetContainer
public void addContent(MediaRule rule)
public void addContent(PageRule rule)
public List getContents()
public void addImportRule(StylesheetInfo info)
public List getImportRules()
public void addFontFaceRule(FontFaceRule rule)
public List getFontFaceRules()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |