All Packages Class Hierarchy This Package Previous Next Index
Class org.w3c.css.css.StyleSheetParser
java.lang.Object
|
+----org.w3c.css.css.StyleSheetParser
- public final class StyleSheetParser
- extends Object
- implements CssValidatorListener, CssParser
-
StyleSheetParser()
-
-
getStyleSheet()
-
-
handleAtRule(String, String)
- Handles an at-rule.
-
handleRule(CssSelectors, Vector)
- Adds a vector of properties to a selector.
-
notifyErrors(Errors)
-
-
notifyWarnings(Warnings)
-
-
parseStyleAttribute(InputStream, String, URL, int)
- Parse some declarations.
-
parseStyleAttribute(String, String, URL, int)
-
Deprecated.
-
parseStyleElement(InputStream, URL, int)
- Parse a style element.
-
parseStyleElement(String, URL, int)
-
Deprecated.
-
parseURL(URL, int)
-
-
reInit()
-
-
setAuralMode()
-
Deprecated.
-
setStyle(Class)
-
-
unsetAuralMode()
-
Deprecated.
StyleSheetParser
public StyleSheetParser()
reInit
public void reInit()
getStyleSheet
public StyleSheet getStyleSheet()
notifyErrors
public void notifyErrors(Errors errors)
notifyWarnings
public void notifyWarnings(Warnings warnings)
handleRule
public void handleRule(CssSelectors selector,
Vector properties)
- Adds a vector of properties to a selector.
- Parameters:
- selector - the selector
- declarations - Properties to associate with contexts
handleAtRule
public void handleAtRule(String ident,
String string)
- Handles an at-rule.
The parameter value can be :
- CssString
- The value coming from a string.
- CssURL
- The value coming from an URL.
- Vector
- The value is a vector of declarations (it contains properties).
This feature is not legal, so be careful.
- Parameters:
- ident - The ident for this at-rule (for example: 'font-face')
- string - The string representation if this at-rule
parseURL
public void parseURL(URL url,
int origin)
- Parameters:
- url - the URL containing the style sheet
- origin - the origin of the style sheet
- Throws: IOException
- an IO error
parseStyleElement
public void parseStyleElement(InputStream input,
URL url,
int lineno)
- Parse a style element. The Style element always comes from the user
- Parameters:
- input - the inputStream containing the style data
- url - the name of the file the style element was read in.
- Throws: IOException
- an IO error
parseStyleElement
public void parseStyleElement(String input,
URL url,
int lineno)
- Note: parseStyleElement() is deprecated.
Replaced by parseStyleElement
- Parameters:
- input - the inputStream containing the style data
- url - the name of the file the style element was read in.
- Throws: IOException
- an IO error
- See Also:
- parseStyleElement
parseStyleAttribute
public void parseStyleAttribute(InputStream input,
String id,
URL url,
int lineno)
- Parse some declarations. All declarations always comes from the user
- Parameters:
- input - the inputStream containing the style data
- id - the uniq id
- filename - the name of the file the style element was read in.
- Throws: IOException
- an IO error
parseStyleAttribute
public void parseStyleAttribute(String input,
String id,
URL url,
int lineno)
- Note: parseStyleAttribute() is deprecated.
Replaced by parseStyleAttribute
- Parameters:
- input - the inputStream containing the style data
- id - the uniq id
- url - the name of the file the style element was read in.
- Throws: IOException
- an IO error
- See Also:
- parseStyleAttribute
setStyle
public void setStyle(Class style)
setAuralMode
public void setAuralMode()
- Note: setAuralMode() is deprecated.
unsetAuralMode
public void unsetAuralMode()
- Note: unsetAuralMode() is deprecated.
All Packages Class Hierarchy This Package Previous Next Index