org.w3c.mwi.mobileok.basic
Class CSSMediaHandler
java.lang.Object
org.w3c.mwi.mobileok.basic.CSSMediaHandler
- All Implemented Interfaces:
- org.w3c.css.sac.DocumentHandler
public class CSSMediaHandler
- extends java.lang.Object
- implements org.w3c.css.sac.DocumentHandler
Handler for CSS stylesheets documents that checks whether all the CSS styles
apply to media types other than all and handheld.
The handler implements the DocumentHandler interface. The class
is required to implement the
STYLE_SHEETS_USE
mobileOK test.
- Version:
- $Revision: 1.1 $
- Author:
- The W3C mobileOK Checker Task Force
- See Also:
StyleSheetsUseTest
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mediaRestricted
private boolean mediaRestricted
properties
private boolean properties
insideRestrictedMedia
private boolean insideRestrictedMedia
CSSMediaHandler
public CSSMediaHandler()
isMediaRestricted
public boolean isMediaRestricted()
endMedia
public void endMedia(org.w3c.css.sac.SACMediaList media)
throws org.w3c.css.sac.CSSException
- Specified by:
endMedia in interface org.w3c.css.sac.DocumentHandler
- Throws:
org.w3c.css.sac.CSSException
startMedia
public void startMedia(org.w3c.css.sac.SACMediaList media)
throws org.w3c.css.sac.CSSException
- Specified by:
startMedia in interface org.w3c.css.sac.DocumentHandler
- Throws:
org.w3c.css.sac.CSSException
startSelector
public void startSelector(org.w3c.css.sac.SelectorList selector)
throws org.w3c.css.sac.CSSException
- Specified by:
startSelector in interface org.w3c.css.sac.DocumentHandler
- Throws:
org.w3c.css.sac.CSSException
property
public void property(java.lang.String arg0,
org.w3c.css.sac.LexicalUnit arg1,
boolean arg2)
throws org.w3c.css.sac.CSSException
- Specified by:
property in interface org.w3c.css.sac.DocumentHandler
- Throws:
org.w3c.css.sac.CSSException
startPage
public void startPage(java.lang.String arg0,
java.lang.String arg1)
throws org.w3c.css.sac.CSSException
- Specified by:
startPage in interface org.w3c.css.sac.DocumentHandler
- Throws:
org.w3c.css.sac.CSSException
comment
public void comment(java.lang.String arg0)
throws org.w3c.css.sac.CSSException
- Specified by:
comment in interface org.w3c.css.sac.DocumentHandler
- Throws:
org.w3c.css.sac.CSSException
endDocument
public void endDocument(org.w3c.css.sac.InputSource arg0)
throws org.w3c.css.sac.CSSException
- Specified by:
endDocument in interface org.w3c.css.sac.DocumentHandler
- Throws:
org.w3c.css.sac.CSSException
endFontFace
public void endFontFace()
throws org.w3c.css.sac.CSSException
- Specified by:
endFontFace in interface org.w3c.css.sac.DocumentHandler
- Throws:
org.w3c.css.sac.CSSException
endPage
public void endPage(java.lang.String arg0,
java.lang.String arg1)
throws org.w3c.css.sac.CSSException
- Specified by:
endPage in interface org.w3c.css.sac.DocumentHandler
- Throws:
org.w3c.css.sac.CSSException
endSelector
public void endSelector(org.w3c.css.sac.SelectorList arg0)
throws org.w3c.css.sac.CSSException
- Specified by:
endSelector in interface org.w3c.css.sac.DocumentHandler
- Throws:
org.w3c.css.sac.CSSException
ignorableAtRule
public void ignorableAtRule(java.lang.String arg0)
throws org.w3c.css.sac.CSSException
- Specified by:
ignorableAtRule in interface org.w3c.css.sac.DocumentHandler
- Throws:
org.w3c.css.sac.CSSException
importStyle
public void importStyle(java.lang.String arg0,
org.w3c.css.sac.SACMediaList arg1,
java.lang.String arg2)
throws org.w3c.css.sac.CSSException
- Specified by:
importStyle in interface org.w3c.css.sac.DocumentHandler
- Throws:
org.w3c.css.sac.CSSException
namespaceDeclaration
public void namespaceDeclaration(java.lang.String arg0,
java.lang.String arg1)
throws org.w3c.css.sac.CSSException
- Specified by:
namespaceDeclaration in interface org.w3c.css.sac.DocumentHandler
- Throws:
org.w3c.css.sac.CSSException
startDocument
public void startDocument(org.w3c.css.sac.InputSource arg0)
throws org.w3c.css.sac.CSSException
- Specified by:
startDocument in interface org.w3c.css.sac.DocumentHandler
- Throws:
org.w3c.css.sac.CSSException
startFontFace
public void startFontFace()
throws org.w3c.css.sac.CSSException
- Specified by:
startFontFace in interface org.w3c.css.sac.DocumentHandler
- Throws:
org.w3c.css.sac.CSSException