com.guiseframework.platform.web.css
Class GuiseCSSProcessor

java.lang.Object
  extended by com.guiseframework.platform.web.css.CSSProcessor
      extended by com.guiseframework.platform.web.css.GuiseCSSProcessor

public class GuiseCSSProcessor
extends CSSProcessor

A CSS stylesheet processor that handles Guise-specific manipulations.

Author:
Garret Wilson

Nested Class Summary
static class GuiseCSSProcessor.IE6FixClass
          A specification for an IE6 fix class and the selectors that cause it to be added to an element's class list.
 
Field Summary
static java.lang.String GUISE_IE6_FIX_CLASS_DELIMITER
          The class delimiter for classes that have been fixed for IE6.
static java.lang.String GUISE_IE6_FIX_CLASS_PREFIX
          The class prefix for classes that have been fixed for IE6.
static TypeSelector GUISE_IE6_FIX_TYPE_SELECTOR
          The type selector for indicating that a stylesheet has been fixed for IE6.
 
Constructor Summary
GuiseCSSProcessor()
           
 
Method Summary
 void fixIE6Stylesheet(CSSStylesheet stylesheet)
          Modifies a CSS stylesheet to allow workarounds with IE6 shortcomings.
 java.util.List<GuiseCSSProcessor.IE6FixClass> getIE6FixClasses()
          The list of IE6 fix classes.
 
Methods inherited from class com.guiseframework.platform.web.css.CSSProcessor
parseDeclarationBlock, parseDeclarations, parseRule, parseStylesheetContent, process, skipWhitespaceCommentsEOF
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GUISE_IE6_FIX_TYPE_SELECTOR

public static final TypeSelector GUISE_IE6_FIX_TYPE_SELECTOR
The type selector for indicating that a stylesheet has been fixed for IE6.


GUISE_IE6_FIX_CLASS_PREFIX

public static final java.lang.String GUISE_IE6_FIX_CLASS_PREFIX
The class prefix for classes that have been fixed for IE6.

See Also:
Constant Field Values

GUISE_IE6_FIX_CLASS_DELIMITER

public static final java.lang.String GUISE_IE6_FIX_CLASS_DELIMITER
The class delimiter for classes that have been fixed for IE6.

See Also:
Constant Field Values
Constructor Detail

GuiseCSSProcessor

public GuiseCSSProcessor()
Method Detail

getIE6FixClasses

public java.util.List<GuiseCSSProcessor.IE6FixClass> getIE6FixClasses()
The list of IE6 fix classes. This map is populated by fixIE6Stylesheet(CSSStylesheet).


fixIE6Stylesheet

public void fixIE6Stylesheet(CSSStylesheet stylesheet)
Modifies a CSS stylesheet to allow workarounds with IE6 shortcomings. An empty rule with the type selector GUISE_IE6_FIX_TYPE_SELECTOR will be added as the first style for identification purposes. For selectors that contain multiple class selectors, the class selectors will be combined to form a selector in the form element.guiseIE6_-class1_-class2_-class3:pseudoClass, with the class selectors in alphabetical order.

Parameters:
stylesheet - The stylesheet to fix.


Copyright © 2005-2010 GlobalMentor, Inc. All Rights Reserved.