Package io.keikai.theme
Class SpreadsheetThemeRegistry
- java.lang.Object
- 
- io.keikai.theme.SpreadsheetThemeRegistry
 
- 
- All Implemented Interfaces:
- org.zkoss.web.theme.ThemeRegistry
 
 public class SpreadsheetThemeRegistry extends Object implements org.zkoss.web.theme.ThemeRegistry - Since:
- 3.5.0
- Author:
- RaymondChao
 
- 
- 
Constructor SummaryConstructors Constructor Description SpreadsheetThemeRegistry()Initialize the registry with the default theme (a.k.a Breeze).
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanderegister(org.zkoss.web.theme.Theme theme)Remove a theme from the list of available desktop themesorg.zkoss.web.theme.ThemegetTheme(String themeName)Returns the desktop theme with the given nameorg.zkoss.web.theme.Theme[]getThemes()Returns a list of currently registered desktop themesbooleanhasTheme(String themeName)Check if a dekstop theme with the given name is available to usebooleanregister(org.zkoss.web.theme.Theme theme)Register a desktop theme.
 
- 
- 
- 
Method Detail- 
registerpublic boolean register(org.zkoss.web.theme.Theme theme) Register a desktop theme.- Specified by:
- registerin interface- org.zkoss.web.theme.ThemeRegistry
- Parameters:
- theme- an instance of StandardTheme
- Returns:
- true if registration is successful; false if failed
 
 - 
deregisterpublic boolean deregister(org.zkoss.web.theme.Theme theme) Remove a theme from the list of available desktop themes- Specified by:
- deregisterin interface- org.zkoss.web.theme.ThemeRegistry
- Parameters:
- theme- the theme to be removed
- Returns:
- true if the theme is successfully removed; false if failed
 
 - 
getThemespublic org.zkoss.web.theme.Theme[] getThemes() Returns a list of currently registered desktop themes- Specified by:
- getThemesin interface- org.zkoss.web.theme.ThemeRegistry
- Returns:
- the list of currently registered desktop themes
 
 - 
hasThemepublic boolean hasTheme(String themeName) Check if a dekstop theme with the given name is available to use- Specified by:
- hasThemein interface- org.zkoss.web.theme.ThemeRegistry
- Returns:
- true if theme is found; false otherwise
 
 - 
getThemepublic org.zkoss.web.theme.Theme getTheme(String themeName) Returns the desktop theme with the given name- Specified by:
- getThemein interface- org.zkoss.web.theme.ThemeRegistry
- Parameters:
- themeName- theme name
- Returns:
- an instance of Theme with the given name or null if the registry does not have a theme that goes by that name
 
 
- 
 
-