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.


Inner Class Summary
protected  class CSSOMImportRule.ImportRuleHandler
          To handle an import rule.
 
Field Summary
protected  java.lang.String href
          The Href
protected  MediaList media
          The media.
protected  Parser parser
          The CSS parser.
protected  DocumentHandler ruleHandler
          The CSS document handler.
protected  CSSStyleSheet styleSheet
          The parent StyleSheet.
 
Fields inherited from class org.apache.batik.css.AbstractCSSRule
CONDITION_FACTORY, parentRule, parentStyleSheet, SELECTOR_FACTORY
 
Fields inherited from interface org.w3c.dom.css.CSSRule
CHARSET_RULE, FONT_FACE_RULE, IMPORT_RULE, MEDIA_RULE, PAGE_RULE, STYLE_RULE, UNKNOWN_RULE
 
Constructor Summary
CSSOMImportRule(CSSStyleSheet parent, java.lang.String href, MediaList media)
          Creates a new CSSOMImportRule object.
 
Method Summary
 java.lang.String getCssText()
          DOM: Implements CSSRule.getCssText().
 java.lang.String getHref()
          DOM: Implements CSSImportRule.getHref().
 MediaList getMedia()
          DOM: Implements CSSImportRule.getMedia().
 CSSStyleSheet getStyleSheet()
          DOM: Implements CSSImportRule.getStyleSheet().
 short getType()
          DOM: Implements CSSRule.getType().
 void setCssText(java.lang.String cssText)
          DOM: Implements CSSRule.setCssText(String).
 
Methods inherited from class org.apache.batik.css.AbstractCSSRule
getParentRule, getParentStyleSheet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.css.CSSRule
getParentRule, getParentStyleSheet
 

Field Detail

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.
Constructor Detail

CSSOMImportRule

public CSSOMImportRule(CSSStyleSheet parent,
                       java.lang.String href,
                       MediaList media)
Creates a new CSSOMImportRule object.
Method Detail

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.