org.tinyjee.maven.dim.sh
Class StyleHandler

java.lang.Object
  extended by org.tinyjee.maven.dim.sh.StyleHandler

public class StyleHandler
extends Object

Handles the inclusion of styles.

Version:
1.0
Author:
Juergen_Kellerer, 2010-09-03

Constructor Summary
StyleHandler()
          Constructs a new style handler with the default style theme.
StyleHandler(String themeName)
          Constructs a new style handler with the given style theme.
 
Method Summary
 String getCSSContent(String cssName)
          Returns the CSS content of the CSS file.
 String getCSSFileName()
          Returns the name of the CSS file.
 boolean isHandlingStyleForTheme(String theme)
          Returns true if this instance is handling the given style theme.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StyleHandler

public StyleHandler()
Constructs a new style handler with the default style theme.


StyleHandler

public StyleHandler(String themeName)
Constructs a new style handler with the given style theme.

Parameters:
themeName - the name of the supported style theme (name is not validated!).
Method Detail

getCSSFileName

public String getCSSFileName()
Returns the name of the CSS file.

Returns:
the name of the CSS file.

isHandlingStyleForTheme

public boolean isHandlingStyleForTheme(String theme)
Returns true if this instance is handling the given style theme.

Parameters:
theme - the name of the supported style theme.
Returns:
true if this instance is handling the given style theme.

getCSSContent

public String getCSSContent(String cssName)
Returns the CSS content of the CSS file.

Parameters:
cssName - the name of the cached file or 'null' to return the default for the given schema.
Returns:
the CSS content of the CSS file.