All Packages Class Hierarchy This Package Previous Next Index
Class org.w3c.css.parser.CssStyle
java.lang.Object
|
+----org.w3c.css.parser.CssStyle
- public class CssStyle
- extends Object
This class represents a class for one context
-
selector
- The context of this style.
-
style
- The entire style sheet.
-
warnings
- For warnings report.
-
CssStyle()
-
-
addRedefinitionWarning(CssProperty)
- Add a warning definition to this style.
-
findConflicts(Warnings, Enumeration)
- Find conflicts in this Style
-
print(CssPrinterStyle)
- Print this style.
-
setProperty(CssProperty, Warnings)
- Add a property to this style
-
setSelector(CssSelectors)
- Set the context of this style.
-
setStyleSheet(StyleSheet)
- Set the style sheet of this style.
warnings
protected Warnings warnings
- For warnings report.
style
protected StyleSheet style
- The entire style sheet.
selector
protected CssSelectors selector
- The context of this style.
CssStyle
public CssStyle()
setSelector
public final void setSelector(CssSelectors selectors)
- Set the context of this style.
- Parameters:
- selectors - The context.
setStyleSheet
public final void setStyleSheet(StyleSheet style)
- Set the style sheet of this style.
- Parameters:
- style - The style sheet.
addRedefinitionWarning
public final void addRedefinitionWarning(CssProperty property)
- Add a warning definition to this style.
- Parameters:
- property - The property.
setProperty
public final void setProperty(CssProperty property,
Warnings warnings)
- Add a property to this style
- Parameters:
- property - the property to add
- warnings - where to add warnings if required
print
public void print(CssPrinterStyle printer)
- Print this style.
Overrides this method to create your own style.
- Parameters:
- printer - The printer interface.
findConflicts
public void findConflicts(Warnings warnings,
Enumeration allSelectors)
- Find conflicts in this Style
- Parameters:
- warnings - For warnings reports.
- allSelectors - All contexts is the entire style sheet.
All Packages Class Hierarchy This Package Previous Next Index