|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ThemeRegistry
Used to store a list of themes available to the web application.
Themes should be registered before they could be used.
User could define their own theme registry by implementing ThemeRegistry
interface, and specifying the following configuration in metainfo/zk/zk.xml
or WEB-INF/zk.xml.
Method Summary | |
---|---|
boolean |
deregister(Theme theme)
Remove a theme from web application's use |
Theme |
getTheme(java.lang.String themeName)
Returns the theme identified by themeName |
Theme[] |
getThemes()
|
boolean |
hasTheme(java.lang.String themeName)
Determine if a theme is registered |
boolean |
register(Theme theme)
Register a theme, i.e. making the theme known to the web application Note: how to deal with duplicate registration is entirely up to the specific implementation of ThemeRegistry. |
Method Detail |
---|
boolean register(Theme theme)
theme
- theme-specific information
boolean deregister(Theme theme)
theme
- the theme to be removed from the registry
Theme[] getThemes()
Theme getTheme(java.lang.String themeName)
themeName
- the name of the theme
boolean hasTheme(java.lang.String themeName)
themeName
- the name of the theme
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |