java.lang.Object
de.agilecoders.wicket.core.settings.Theme
- All Implemented Interfaces:
ITheme
- Direct Known Subclasses:
BootstrapTheme
#### 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());
}
}
```-
Field Summary
Fields inherited from interface de.agilecoders.wicket.core.settings.ITheme
BOOTSTRAP_THEME_MARKUP_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringname()voidrenderHead(IHeaderResponse response) Print to the web response what ever theIThemewants to contribute to the head section.
-
Constructor Details
-
Theme
Construct.- Parameters:
name- Unique theme nameresourceReferences- All references that are necessary for this theme
-
-
Method Details
-
name
-
getDependencies
- Specified by:
getDependenciesin interfaceITheme- Returns:
- A list of all resources needed by the theme
-
renderHead
Description copied from interface:IThemePrint to the web response what ever theIThemewants to contribute to the head section.- Specified by:
renderHeadin interfaceITheme- Parameters:
response- TheIHeaderResponseinstance
-
getCdnUrls
- Specified by:
getCdnUrlsin interfaceITheme- Returns:
- The urls to CDN CSS resources to use for this theme
-
getVersion
- Returns:
- The configured version of Bootstrap
-