Module wicket.bootstrap.core
Interface ActiveThemeProvider
- All Known Implementing Classes:
CookieThemeProvider,SessionThemeProvider
public interface ActiveThemeProvider
#### Description
The
ActiveThemeProvider interface is used to identify the active theme when rendering
web resources.-
Method Summary
Modifier and TypeMethodDescriptionreturns the current active theme (can be user/session scoped).voidsetActiveTheme(ITheme theme) sets the active themevoidsetActiveTheme(String themeName) sets the active theme by its name.
-
Method Details
-
getActiveTheme
ITheme getActiveTheme()returns the current active theme (can be user/session scoped). If none is set a default theme should be returned (implementation specific). There is a session scoped implementation:SessionThemeProvider- Returns:
- the current active theme
-
setActiveTheme
sets the active theme by its name.- Parameters:
themeName- the theme name
-
setActiveTheme
sets the active theme- Parameters:
theme- the theme to set
-