Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.theme.html
Class CSSUtils

java.lang.Object
  extended by org.nuxeo.theme.html.CSSUtils

public final class CSSUtils
extends Object


Method Summary
static String compressSource(String source)
           
static String computeCssClassName(Style style)
           
static String expandPartialUrls(String text, String cssContextPath)
           
static String expandVariables(String text, String basePath, String collectionName, ThemeDescriptor themeDescriptor)
           
static List<String> extractCssColors(String value)
           
static List<String> extractCssImages(String value)
           
static Properties getCssProperties()
           
static String insertCssClass(String markup, String className)
           
static String optimizeHexColor(String value)
           
static String replaceColor(String text, String before, String after)
           
static String replaceImage(String text, String before, String after)
           
static String rgbToHex(String value)
           
static String styleToCss(Style style, Collection<String> viewNames, boolean ignoreViewName, boolean ignoreClassName, boolean indent)
           
static String toCamelCase(String value)
           
static String toUpperCamelCase(String value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCssProperties

public static Properties getCssProperties()

styleToCss

public static String styleToCss(Style style,
                                Collection<String> viewNames,
                                boolean ignoreViewName,
                                boolean ignoreClassName,
                                boolean indent)

insertCssClass

public static String insertCssClass(String markup,
                                    String className)

computeCssClassName

public static String computeCssClassName(Style style)

replaceColor

public static String replaceColor(String text,
                                  String before,
                                  String after)

replaceImage

public static String replaceImage(String text,
                                  String before,
                                  String after)

optimizeHexColor

public static String optimizeHexColor(String value)

rgbToHex

public static String rgbToHex(String value)

extractCssColors

public static List<String> extractCssColors(String value)

extractCssImages

public static List<String> extractCssImages(String value)

toCamelCase

public static String toCamelCase(String value)

toUpperCamelCase

public static String toUpperCamelCase(String value)

compressSource

public static String compressSource(String source)
                             throws ThemeException
Throws:
ThemeException

expandPartialUrls

public static String expandPartialUrls(String text,
                                       String cssContextPath)

expandVariables

public static String expandVariables(String text,
                                     String basePath,
                                     String collectionName,
                                     ThemeDescriptor themeDescriptor)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.