public class SpreadsheetThemeRegistry extends Object implements org.zkoss.web.theme.ThemeRegistry
Constructor and Description |
---|
SpreadsheetThemeRegistry()
Initialize the registry with the default theme (a.k.a Breeze).
|
Modifier and Type | Method and Description |
---|---|
boolean |
deregister(org.zkoss.web.theme.Theme theme)
Remove a theme from the list of available desktop themes
|
org.zkoss.web.theme.Theme |
getTheme(String themeName)
Returns the desktop theme with the given name
|
org.zkoss.web.theme.Theme[] |
getThemes()
Returns a list of currently registered desktop themes
|
boolean |
hasTheme(String themeName)
Check if a dekstop theme with the given name is available to use
|
boolean |
register(org.zkoss.web.theme.Theme theme)
Register a desktop theme.
|
public SpreadsheetThemeRegistry()
public boolean register(org.zkoss.web.theme.Theme theme)
register
in interface org.zkoss.web.theme.ThemeRegistry
theme
- an instance of StandardThemepublic boolean deregister(org.zkoss.web.theme.Theme theme)
deregister
in interface org.zkoss.web.theme.ThemeRegistry
theme
- the theme to be removedpublic org.zkoss.web.theme.Theme[] getThemes()
getThemes
in interface org.zkoss.web.theme.ThemeRegistry
public boolean hasTheme(String themeName)
hasTheme
in interface org.zkoss.web.theme.ThemeRegistry
public org.zkoss.web.theme.Theme getTheme(String themeName)
getTheme
in interface org.zkoss.web.theme.ThemeRegistry
themeName
- theme nameCopyright © 2020. All rights reserved.