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.


Constructor Index

 o StyleSheet()
Create a new StyleSheet.

Method Index

 o addErrors(Errors)
Add some errors to this style.
 o addProperty(CssSelectors, CssProperty)
Add a property to this style sheet.
 o addWarnings(Warnings)
Add some warnings to this style.
 o CascadingOrder(CssProperty, StyleSheet, CssSelectors)
Returns the property for a context.
 o dump()
dump this style sheet.
 o findConflicts()
Find all conflicts for this style sheet.
 o getContext(CssSelectors)
Returns the uniq context for a context
 o getErrors()
Returns all errors.
 o getRules()
Returns all rules
 o getStyle(CssSelectors)
Get a style in a specific context.
 o getWarnings()
Returns all warnings.
 o remove(CssSelectors)

Constructors

 o StyleSheet
 public StyleSheet()
Create a new StyleSheet.

Methods

 o 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.
 o 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
 o remove
 public void remove(CssSelectors selector)
 o addErrors
 public void addErrors(Errors errors)
Add some errors to this style.

Parameters:
errors - Some errors.
 o addWarnings
 public void addWarnings(Warnings warnings)
Add some warnings to this style.

Parameters:
warnings - Some warnings.
 o getErrors
 public final Errors getErrors()
Returns all errors.

 o getWarnings
 public final Warnings getWarnings()
Returns all warnings.

 o getRules
 public final Hashtable getRules()
Returns all rules

 o 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
 o findConflicts
 public void findConflicts()
Find all conflicts for this style sheet.

 o getContext
 protected CssSelectors getContext(CssSelectors selector)
Returns the uniq context for a context

Parameters:
selector - the context to find.
 o dump
 public void dump()
dump this style sheet.


All Packages  Class Hierarchy  This Package  Previous  Next  Index