org.apache.batik.css
Class CSSOMImportRule
java.lang.Object
|
+--org.apache.batik.css.AbstractCSSRule
|
+--org.apache.batik.css.CSSOMImportRule
- All Implemented Interfaces:
- CSSImportRule, CSSRule
- public class CSSOMImportRule
- extends AbstractCSSRule
- implements CSSImportRule
This class implements the CSSImportRule
interface.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
styleSheet
protected CSSStyleSheet styleSheet
- The parent StyleSheet.
href
protected java.lang.String href
- The Href
media
protected MediaList media
- The media.
ruleHandler
protected DocumentHandler ruleHandler
- The CSS document handler.
parser
protected Parser parser
- The CSS parser.
CSSOMImportRule
public CSSOMImportRule(CSSStyleSheet parent,
java.lang.String href,
MediaList media)
- Creates a new CSSOMImportRule object.
getType
public short getType()
- DOM: Implements
CSSRule.getType()
.
- Specified by:
getType
in interface CSSRule
getCssText
public java.lang.String getCssText()
- DOM: Implements
CSSRule.getCssText()
.
- Specified by:
getCssText
in interface CSSRule
- Following copied from interface:
org.w3c.dom.css.CSSRule
- Throws:
DOMException
- SYNTAX_ERR: Raised if the specified CSS string value has a syntax
error and is unparsable.
INVALID_MODIFICATION_ERR: Raised if the specified CSS string
value represents a different type of rule than the current one.
HIERARCHY_REQUEST_ERR: Raised if the rule cannot be inserted at
this point in the style sheet.
NO_MODIFICATION_ALLOWED_ERR: Raised if the rule is readonly.
setCssText
public void setCssText(java.lang.String cssText)
throws DOMException
- DOM: Implements
CSSRule.setCssText(String)
.
- Specified by:
setCssText
in interface CSSRule
- Following copied from interface:
org.w3c.dom.css.CSSRule
- Throws:
DOMException
- SYNTAX_ERR: Raised if the specified CSS string value has a syntax
error and is unparsable.
INVALID_MODIFICATION_ERR: Raised if the specified CSS string
value represents a different type of rule than the current one.
HIERARCHY_REQUEST_ERR: Raised if the rule cannot be inserted at
this point in the style sheet.
NO_MODIFICATION_ALLOWED_ERR: Raised if the rule is readonly.
getHref
public java.lang.String getHref()
- DOM: Implements
CSSImportRule.getHref()
.
- Specified by:
getHref
in interface CSSImportRule
getMedia
public MediaList getMedia()
- DOM: Implements
CSSImportRule.getMedia()
.
- Specified by:
getMedia
in interface CSSImportRule
getStyleSheet
public CSSStyleSheet getStyleSheet()
- DOM: Implements
CSSImportRule.getStyleSheet()
.
- Specified by:
getStyleSheet
in interface CSSImportRule
Copyright © 2001 Apache Software Foundation. All Rights Reserved.