Home » xml-commons-external-1.4.01-src » org.w3c.css.sac » [javadoc | source]
org.w3c.css.sac
public interface: DocumentHandler [javadoc | source] This is the main interface that most CSS applications implement: if the application needs to be informed of basic parsing events, it implements this interface and registers an instance with the CSS parser using the setCSSHandler method.
Method from org.w3c.css.sac.DocumentHandler Summary:
comment,   endDocument,   endFontFace,   endMedia,   endPage,   endSelector,   ignorableAtRule,   importStyle,   namespaceDeclaration,   property,   startDocument,   startFontFace,   startMedia,   startPage,   startSelector
Method from org.w3c.css.sac.DocumentHandler Detail:
 public  void comment(String text) throws CSSException
    Receive notification of a comment. If the comment appears in a declaration (e.g. color: /* comment * / blue;), the parser notifies the comment before the declaration.
 public  void endDocument(InputSource source) throws CSSException
    Receive notification of the end of a document. The CSS parser will invoke this method only once, and it will be the last method invoked during the parse. The parser shall not invoke this method until it has either abandoned parsing (because of an unrecoverable error) or reached the end of input.
 public  void endFontFace() throws CSSException
    Receive notification of the end of a font face statement.
 public  void endMedia(SACMediaList media) throws CSSException
    Receive notification of the end of a media statement.
 public  void endPage(String name,
    String pseudo_page) throws CSSException
    Receive notification of the end of a media statement.
 public  void endSelector(SelectorList selectors) throws CSSException
    Receive notification of the end of a rule statement.
 public  void ignorableAtRule(String atRule) throws CSSException
    Receive notification of an unknown rule t-rule not supported by this parser.
 public  void importStyle(String uri,
    SACMediaList media,
    String defaultNamespaceURI) throws CSSException
    Receive notification of a import statement in the style sheet.
 public  void namespaceDeclaration(String prefix,
    String uri) throws CSSException
    Receive notification of an unknown rule t-rule not supported by this parser.
 public  void property(String name,
    LexicalUnit value,
    boolean important) throws CSSException
    Receive notification of a declaration.
 public  void startDocument(InputSource source) throws CSSException
    Receive notification of the beginning of a style sheet. The CSS parser will invoke this method only once, before any other methods in this interface.
 public  void startFontFace() throws CSSException
    Receive notification of the beginning of a font face statement. The Parser will invoke this method at the beginning of every font face statement in the style sheet. there will be a corresponding endFontFace() event for every startFontFace() event.
 public  void startMedia(SACMediaList media) throws CSSException
    Receive notification of the beginning of a media statement. The Parser will invoke this method at the beginning of every media statement in the style sheet. there will be a corresponding endMedia() event for every startElement() event.
 public  void startPage(String name,
    String pseudo_page) throws CSSException
    Receive notification of the beginning of a page statement. The Parser will invoke this method at the beginning of every page statement in the style sheet. there will be a corresponding endPage() event for every startPage() event.
 public  void startSelector(SelectorList selectors) throws CSSException
    Receive notification of the beginning of a rule statement.