| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.platform.web.html.themes.DefaultThemeManager
public class DefaultThemeManager
Default IThemeResolver implementation. DefaultThemeManager collects information about available system and local themes. User: nbaker Date: 5/15/11
| Constructor Summary | |
|---|---|
DefaultThemeManager()
 | 
|
| Method Summary | |
|---|---|
 Map<String,ModuleThemeInfo> | 
collectAllModuleThemes()
 | 
 Map<String,Theme> | 
collectAllSystemThemes()
 | 
 Theme | 
getModuleTheme(String moduleName,
               String themeId)
Returns the named local theme for the given named module or null if either is not found  | 
 ModuleThemeInfo | 
getModuleThemeInfo(String moduleName)
Returns the MoudleThemeInfo object containing all themes for the given module name or null if not found.  | 
 Theme | 
getSystemTheme(String themeId)
Returns the named theme or null if not found.  | 
 List<String> | 
getSystemThemeIds()
Return a list of available system themes.  | 
 List<IThemeResolver> | 
getThemeResolvers()
 | 
 void | 
refresh()
Force the Theme Manager to recalculate system and module themes  | 
 void | 
setThemeResolvers(List<IThemeResolver> resolvers)
Set the collection of IThemeResolver objects used to find available themes  | 
| Methods inherited from class java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public DefaultThemeManager()
| Method Detail | 
|---|
public List<String> getSystemThemeIds()
IThemeManager
getSystemThemeIds in interface IThemeManagerpublic Theme getSystemTheme(String themeId)
IThemeManager
getSystemTheme in interface IThemeManager
public Theme getModuleTheme(String moduleName,
                            String themeId)
IThemeManager
getModuleTheme in interface IThemeManagerpublic ModuleThemeInfo getModuleThemeInfo(String moduleName)
IThemeManager
getModuleThemeInfo in interface IThemeManagerpublic Map<String,ModuleThemeInfo> collectAllModuleThemes()
public Map<String,Theme> collectAllSystemThemes()
public void refresh()
IThemeManager
refresh in interface IThemeManagerpublic void setThemeResolvers(List<IThemeResolver> resolvers)
IThemeManager
setThemeResolvers in interface IThemeManagerpublic List<IThemeResolver> getThemeResolvers()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||