All Packages Class Hierarchy This Package Previous Next Index
Class org.w3c.css.css.StyleSheet
java.lang.Object
|
+----org.w3c.css.css.StyleSheet
- public class StyleSheet
- extends Object
This class contains a style sheet with all rules, errors and warnings.
-
StyleSheet()
- Create a new StyleSheet.
-
addErrors(Errors)
- Add some errors to this style.
-
addProperty(CssSelectors, CssProperty)
- Add a property to this style sheet.
-
addWarnings(Warnings)
- Add some warnings to this style.
-
CascadingOrder(CssProperty, StyleSheet, CssSelectors)
- Returns the property for a context.
-
dump()
- dump this style sheet.
-
findConflicts()
- Find all conflicts for this style sheet.
-
getContext(CssSelectors)
- Returns the uniq context for a context
-
getErrors()
- Returns all errors.
-
getRules()
- Returns all rules
-
getStyle(CssSelectors)
- Get a style in a specific context.
-
getWarnings()
- Returns all warnings.
-
remove(CssSelectors)
-
StyleSheet
public StyleSheet()
- Create a new StyleSheet.
getStyle
public CssStyle getStyle(CssSelectors context)
- Get a style in a specific context.
No resolution are perfomed when this function is called
- Parameters:
- context - The context for the style
- Returns:
- The style for the specific context.
addProperty
public void addProperty(CssSelectors selector,
CssProperty property)
- Add a property to this style sheet.
- Parameters:
- selector - The context where the property is defined
- property - The property to add
remove
public void remove(CssSelectors selector)
addErrors
public void addErrors(Errors errors)
- Add some errors to this style.
- Parameters:
- errors - Some errors.
addWarnings
public void addWarnings(Warnings warnings)
- Add some warnings to this style.
- Parameters:
- warnings - Some warnings.
getErrors
public final Errors getErrors()
- Returns all errors.
getWarnings
public final Warnings getWarnings()
- Returns all warnings.
getRules
public final Hashtable getRules()
- Returns all rules
CascadingOrder
public final CssProperty CascadingOrder(CssProperty property,
StyleSheet style,
CssSelectors selector)
- Returns the property for a context.
- Parameters:
- property - The default value returned if there is no property.
- style - The current style sheet where we can find all properties
- selector - The current context
- Returns:
- the property with the right value
findConflicts
public void findConflicts()
- Find all conflicts for this style sheet.
getContext
protected CssSelectors getContext(CssSelectors selector)
- Returns the uniq context for a context
- Parameters:
- selector - the context to find.
dump
public void dump()
- dump this style sheet.
All Packages Class Hierarchy This Package Previous Next Index