Class DefaultThemeProvider

java.lang.Object
de.agilecoders.wicket.core.settings.DefaultThemeProvider
All Implemented Interfaces:
ThemeProvider

public class DefaultThemeProvider extends Object implements ThemeProvider
#### Description A default ThemeProvider implementation that only contains the BootstrapTheme. #### Usage ```java settings.setThemeProvider(new DefaultThemeProvider(settings)); ```
  • Constructor Details

    • DefaultThemeProvider

      public DefaultThemeProvider()
      Construct.
  • Method Details

    • add

      public DefaultThemeProvider add(ITheme... themes)
      adds an array of new themes.
      Parameters:
      themes - The new themes
      Returns:
      This instance
    • addDefaultTheme

      public DefaultThemeProvider addDefaultTheme(ITheme theme)
      adds a new theme and sets it as default theme.
      Parameters:
      theme - The new default theme
      Returns:
      This instance
    • defaultTheme

      public DefaultThemeProvider defaultTheme(ITheme newDefaultTheme)
      sets the default theme.
      Parameters:
      newDefaultTheme - The new default theme
      Returns:
      This instance
    • defaultTheme

      public DefaultThemeProvider defaultTheme(String themeName)
      sets the default theme.
      Parameters:
      themeName - The name of the new default theme
      Returns:
      This instance
    • byName

      public ITheme byName(String name)
      Description copied from interface: ThemeProvider
      returns a theme by its name. If
      Specified by:
      byName in interface ThemeProvider
      Parameters:
      name - The name of the theme
      Returns:
      the theme according to given name
    • available

      public List<ITheme> available()
      Specified by:
      available in interface ThemeProvider
      Returns:
      a list of all available themes
    • defaultTheme

      public ITheme defaultTheme()
      Specified by:
      defaultTheme in interface ThemeProvider
      Returns:
      the default theme