org.apache.batik.css
Class CSSOMMediaRule.MediaRuleHandler

java.lang.Object
  |
  +--org.apache.batik.css.DocumentHandlerAdapter
        |
        +--org.apache.batik.css.CSSOMMediaRule.MediaRuleHandler
All Implemented Interfaces:
DocumentHandler
Enclosing class:
CSSOMMediaRule

protected class CSSOMMediaRule.MediaRuleHandler
extends DocumentHandlerAdapter

To handle the parsing of a media rule.


Field Summary
protected  CSSRule currentRule
          The current rule.
 
Constructor Summary
protected CSSOMMediaRule.MediaRuleHandler()
           
 
Method Summary
 void endMedia(SACMediaList media)
          SAC: Implements DocumentHandler.endMedia(SACMediaList).
 void endSelector(SelectorList selectors)
          SAC: Implements DocumentHandler.endSelector(SelectorList).
 void property(java.lang.String name, LexicalUnit value, boolean important)
          SAC: Implements DocumentHandler.property(String,LexicalUnit,boolean).
 void startMedia(SACMediaList media)
          SAC: Implements DocumentHandler.startMedia(SACMediaList).
 void startSelector(SelectorList selectors)
          SAC: Implements DocumentHandler.startSelector(SelectorList).
 
Methods inherited from class org.apache.batik.css.DocumentHandlerAdapter
comment, endDocument, endFontFace, endPage, ignorableAtRule, importStyle, namespaceDeclaration, startDocument, startFontFace, startPage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentRule

protected CSSRule currentRule
The current rule.
Constructor Detail

CSSOMMediaRule.MediaRuleHandler

protected CSSOMMediaRule.MediaRuleHandler()
Method Detail

startMedia

public void startMedia(SACMediaList media)
                throws CSSException
SAC: Implements DocumentHandler.startMedia(SACMediaList).
Overrides:
startMedia in class DocumentHandlerAdapter
Following copied from interface: org.w3c.css.sac.DocumentHandler
Parameters:
media - The intended destination media for style information.
Throws:
CSSException - Any CSS exception, possibly wrapping another exception.

endMedia

public void endMedia(SACMediaList media)
              throws CSSException
SAC: Implements DocumentHandler.endMedia(SACMediaList).
Overrides:
endMedia in class DocumentHandlerAdapter
Following copied from interface: org.w3c.css.sac.DocumentHandler
Parameters:
media - The intended destination media for style information.
Throws:
CSSException - Any CSS exception, possibly wrapping another exception.

startSelector

public void startSelector(SelectorList selectors)
                   throws CSSException
SAC: Implements DocumentHandler.startSelector(SelectorList).
Overrides:
startSelector in class DocumentHandlerAdapter
Following copied from interface: org.w3c.css.sac.DocumentHandler
Parameters:
selectors - All intended selectors for all declarations.
Throws:
CSSException - Any CSS exception, possibly wrapping another exception.

endSelector

public void endSelector(SelectorList selectors)
                 throws CSSException
SAC: Implements DocumentHandler.endSelector(SelectorList).
Overrides:
endSelector in class DocumentHandlerAdapter
Following copied from interface: org.w3c.css.sac.DocumentHandler
Parameters:
selectors - All intended selectors for all declarations.
Throws:
CSSException - Any CSS exception, possibly wrapping another exception.

property

public void property(java.lang.String name,
                     LexicalUnit value,
                     boolean important)
              throws CSSException
SAC: Implements DocumentHandler.property(String,LexicalUnit,boolean).
Overrides:
property in class DocumentHandlerAdapter
Following copied from interface: org.w3c.css.sac.DocumentHandler
Parameters:
name - the name of the property.
value - the value of the property. All whitespace are stripped.
important - is this property important ?
Throws:
CSSException - Any CSS exception, possibly wrapping another exception.


Copyright © 2001 Apache Software Foundation. All Rights Reserved.