java.lang.Object
de.agilecoders.wicket.core.settings.DefaultThemeProvider
- All Implemented Interfaces:
ThemeProvider
#### Description
A default
ThemeProvider implementation that only contains
the BootstrapTheme.
#### Usage
```java
settings.setThemeProvider(new DefaultThemeProvider(settings));
```-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadds an array of new themes.addDefaultTheme(ITheme theme) adds a new theme and sets it as default theme.returns a theme by its name.defaultTheme(ITheme newDefaultTheme) sets the default theme.defaultTheme(String themeName) sets the default theme.
-
Constructor Details
-
DefaultThemeProvider
public DefaultThemeProvider()Construct.
-
-
Method Details
-
add
adds an array of new themes.- Parameters:
themes- The new themes- Returns:
- This instance
-
addDefaultTheme
adds a new theme and sets it as default theme.- Parameters:
theme- The new default theme- Returns:
- This instance
-
defaultTheme
sets the default theme.- Parameters:
newDefaultTheme- The new default theme- Returns:
- This instance
-
defaultTheme
sets the default theme.- Parameters:
themeName- The name of the new default theme- Returns:
- This instance
-
byName
Description copied from interface:ThemeProviderreturns a theme by its name. If- Specified by:
byNamein interfaceThemeProvider- Parameters:
name- The name of the theme- Returns:
- the theme according to given name
-
available
- Specified by:
availablein interfaceThemeProvider- Returns:
- a list of all available themes
-
defaultTheme
- Specified by:
defaultThemein interfaceThemeProvider- Returns:
- the default theme
-