org.apache.batik.css.engine
Class CSSEngine.StyleSheetDocumentHandler

java.lang.Object
  extended by org.apache.batik.css.engine.CSSEngine.DocumentAdapter
      extended by org.apache.batik.css.engine.CSSEngine.StyleSheetDocumentHandler
All Implemented Interfaces:
ShorthandManager.PropertyHandler
Enclosing class:
CSSEngine

protected class CSSEngine.StyleSheetDocumentHandler
extends CSSEngine.DocumentAdapter
implements ShorthandManager.PropertyHandler

To parse a style sheet.


Field Summary
protected  StyleDeclaration styleDeclaration
           
protected  StyleRule styleRule
           
 StyleSheet styleSheet
           
 
Constructor Summary
protected CSSEngine.StyleSheetDocumentHandler()
           
 
Method Summary
 void endDocument(InputSource source)
          SAC: Implements CSSEngine.DocumentAdapter.endDocument(InputSource).
 void endFontFace()
          SAC: Implements org.w3c.css.sac.DocumentHandler#endFontFace().
 void endMedia(SACMediaList media)
          SAC: Implements org.w3c.css.sac.DocumentHandler#endMedia(SACMediaList).
 void endPage(String name, String pseudo_page)
          SAC: Implements org.w3c.css.sac.DocumentHandler#endPage(String,String).
 void endSelector(SelectorList selectors)
          SAC: Implements org.w3c.css.sac.DocumentHandler#endSelector(SelectorList).
 void ignorableAtRule(String atRule)
          SAC: Implements org.w3c.css.sac.DocumentHandler#ignorableAtRule(String).
 void importStyle(String uri, SACMediaList media, String defaultNamespaceURI)
          SAC: Implements CSSEngine.DocumentAdapter.importStyle(String,SACMediaList,String).
 void property(String name, LexicalUnit value, boolean important)
          SAC: Implements CSSEngine.StyleDeclarationDocumentHandler.property(String,LexicalUnit,boolean).
 void startDocument(InputSource source)
          SAC: Implements CSSEngine.DocumentAdapter.startDocument(InputSource).
 void startFontFace()
          SAC: Implements org.w3c.css.sac.DocumentHandler#startFontFace().
 void startMedia(SACMediaList media)
          SAC: Implements org.w3c.css.sac.DocumentHandler#startMedia(SACMediaList).
 void startPage(String name, String pseudo_page)
          SAC: Implements org.w3c.css.sac.DocumentHandler#startPage(String,String).
 void startSelector(SelectorList selectors)
          SAC: Implements org.w3c.css.sac.DocumentHandler#startSelector(SelectorList).
 
Methods inherited from class org.apache.batik.css.engine.CSSEngine.DocumentAdapter
comment, namespaceDeclaration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

styleSheet

public StyleSheet styleSheet

styleRule

protected StyleRule styleRule

styleDeclaration

protected StyleDeclaration styleDeclaration
Constructor Detail

CSSEngine.StyleSheetDocumentHandler

protected CSSEngine.StyleSheetDocumentHandler()
Method Detail

startDocument

public void startDocument(InputSource source)
                   throws CSSException
SAC: Implements CSSEngine.DocumentAdapter.startDocument(InputSource).

Overrides:
startDocument in class CSSEngine.DocumentAdapter
Throws:
CSSException

endDocument

public void endDocument(InputSource source)
                 throws CSSException
SAC: Implements CSSEngine.DocumentAdapter.endDocument(InputSource).

Overrides:
endDocument in class CSSEngine.DocumentAdapter
Throws:
CSSException

ignorableAtRule

public void ignorableAtRule(String atRule)
                     throws CSSException
SAC: Implements org.w3c.css.sac.DocumentHandler#ignorableAtRule(String).

Overrides:
ignorableAtRule in class CSSEngine.DocumentAdapter
Throws:
CSSException

importStyle

public void importStyle(String uri,
                        SACMediaList media,
                        String defaultNamespaceURI)
                 throws CSSException
SAC: Implements CSSEngine.DocumentAdapter.importStyle(String,SACMediaList,String).

Overrides:
importStyle in class CSSEngine.DocumentAdapter
Throws:
CSSException

startMedia

public void startMedia(SACMediaList media)
                throws CSSException
SAC: Implements org.w3c.css.sac.DocumentHandler#startMedia(SACMediaList).

Overrides:
startMedia in class CSSEngine.DocumentAdapter
Throws:
CSSException

endMedia

public void endMedia(SACMediaList media)
              throws CSSException
SAC: Implements org.w3c.css.sac.DocumentHandler#endMedia(SACMediaList).

Overrides:
endMedia in class CSSEngine.DocumentAdapter
Throws:
CSSException

startPage

public void startPage(String name,
                      String pseudo_page)
               throws CSSException
SAC: Implements org.w3c.css.sac.DocumentHandler#startPage(String,String).

Overrides:
startPage in class CSSEngine.DocumentAdapter
Throws:
CSSException

endPage

public void endPage(String name,
                    String pseudo_page)
             throws CSSException
SAC: Implements org.w3c.css.sac.DocumentHandler#endPage(String,String).

Overrides:
endPage in class CSSEngine.DocumentAdapter
Throws:
CSSException

startFontFace

public void startFontFace()
                   throws CSSException
SAC: Implements org.w3c.css.sac.DocumentHandler#startFontFace().

Overrides:
startFontFace in class CSSEngine.DocumentAdapter
Throws:
CSSException

endFontFace

public void endFontFace()
                 throws CSSException
SAC: Implements org.w3c.css.sac.DocumentHandler#endFontFace().

Overrides:
endFontFace in class CSSEngine.DocumentAdapter
Throws:
CSSException

startSelector

public void startSelector(SelectorList selectors)
                   throws CSSException
SAC: Implements org.w3c.css.sac.DocumentHandler#startSelector(SelectorList).

Overrides:
startSelector in class CSSEngine.DocumentAdapter
Throws:
CSSException

endSelector

public void endSelector(SelectorList selectors)
                 throws CSSException
SAC: Implements org.w3c.css.sac.DocumentHandler#endSelector(SelectorList).

Overrides:
endSelector in class CSSEngine.DocumentAdapter
Throws:
CSSException

property

public void property(String name,
                     LexicalUnit value,
                     boolean important)
              throws CSSException
SAC: Implements CSSEngine.StyleDeclarationDocumentHandler.property(String,LexicalUnit,boolean).

Specified by:
property in interface ShorthandManager.PropertyHandler
Overrides:
property in class CSSEngine.DocumentAdapter
Throws:
CSSException


Copyright ? 2008 Apache Software Foundation. All Rights Reserved.