java.lang.Object
de.agilecoders.wicket.core.settings.Theme
All Implemented Interfaces:
ITheme
Direct Known Subclasses:
BootstrapTheme

public class Theme extends Object implements ITheme
#### Description Default ITheme implementation. This class can be used as base class for custom themes. #### Usage ```java public class MyCustomTheme extends Theme { public MyCustomTheme() { super("my-custom-theme", new MyCustomThemeCssReference()); } } ```
  • Constructor Details

    • Theme

      public Theme(String name, ResourceReference... resourceReferences)
      Construct.
      Parameters:
      name - Unique theme name
      resourceReferences - All references that are necessary for this theme
  • Method Details

    • name

      public String name()
      Specified by:
      name in interface ITheme
      Returns:
      The unique name of this theme.
    • getDependencies

      public List<HeaderItem> getDependencies()
      Specified by:
      getDependencies in interface ITheme
      Returns:
      A list of all resources needed by the theme
    • renderHead

      public void renderHead(IHeaderResponse response)
      Description copied from interface: ITheme
      Print to the web response what ever the ITheme wants to contribute to the head section.
      Specified by:
      renderHead in interface ITheme
      Parameters:
      response - The IHeaderResponse instance
    • getCdnUrls

      public Iterable<String> getCdnUrls()
      Specified by:
      getCdnUrls in interface ITheme
      Returns:
      The urls to CDN CSS resources to use for this theme
    • getVersion

      protected String getVersion()
      Returns:
      The configured version of Bootstrap