- All Known Implementing Classes:
BootstrapTheme,Theme
public interface ITheme
#### Description
Interface that represents a theme. A theme is responsible for rendering of all web resources that
are needed.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe markup id to use for the CSS resource reference. -
Method Summary
Modifier and TypeMethodDescriptionname()voidrenderHead(IHeaderResponse response) Print to the web response what ever theIThemewants to contribute to the head section.
-
Field Details
-
BOOTSTRAP_THEME_MARKUP_ID
The markup id to use for the CSS resource reference. If the theme is changed in an Ajax response wicket-ajax.js will properly remove the old <link> and add the new one.- See Also:
-
-
Method Details
-
name
String name()- Returns:
- The unique name of this theme.
-
getDependencies
List<HeaderItem> getDependencies()- Returns:
- A list of all resources needed by the theme
-
renderHead
Print to the web response what ever theIThemewants to contribute to the head section.- Parameters:
response- TheIHeaderResponseinstance
-
getCdnUrls
- Returns:
- The urls to CDN CSS resources to use for this theme
-