to.etc.domui.themes
Class SimpleTheme

java.lang.Object
  extended by to.etc.domui.themes.SimpleTheme
All Implemented Interfaces:
ITheme

public class SimpleTheme
extends java.lang.Object
implements ITheme


Constructor Summary
SimpleTheme(java.lang.String styleName, java.util.Map<java.lang.String,java.lang.Object> themeProperties, ResourceDependencies rd)
           
 
Method Summary
 ResourceDependencies getDependencies()
          The dependencies for this theme instance.
 java.lang.String getIconURL(java.lang.String icon)
          Find the specified icon in the theme, and return the proper RURL for it.
 java.lang.String getStylesheet()
          Returns the stylesheet RURL to include in every page.
 java.lang.String getThemePath(java.lang.String path)
          Get a resource from the theme's inheritance path.
 java.util.Map<java.lang.String,java.lang.Object> getThemeProperties()
          Return the read-only properties for a theme.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTheme

public SimpleTheme(java.lang.String styleName,
                   java.util.Map<java.lang.String,java.lang.Object> themeProperties,
                   ResourceDependencies rd)
Method Detail

getStylesheet

public java.lang.String getStylesheet()
Description copied from interface: ITheme
Returns the stylesheet RURL to include in every page. This must return an application-relative URL, i.e. it must not include the webapp's context and must not start with a /.

Specified by:
getStylesheet in interface ITheme
Returns:

getDependencies

public ResourceDependencies getDependencies()
Description copied from interface: ITheme
The dependencies for this theme instance. This will be used by the engine to check if this instance needs to be reloaded because it's source files have changed in development mode.

Specified by:
getDependencies in interface ITheme
Returns:

getThemeProperties

public java.util.Map<java.lang.String,java.lang.Object> getThemeProperties()
Description copied from interface: ITheme
Return the read-only properties for a theme.

Specified by:
getThemeProperties in interface ITheme
Returns:

getIconURL

public java.lang.String getIconURL(java.lang.String icon)
Description copied from interface: ITheme
Find the specified icon in the theme, and return the proper RURL for it.

Specified by:
getIconURL in interface ITheme
Returns:

getThemePath

public java.lang.String getThemePath(java.lang.String path)
Description copied from interface: ITheme
Get a resource from the theme's inheritance path.

Specified by:
getThemePath in interface ITheme
Returns: