Package com.atlassian.confluence.themes
Interface Theme
- All Known Implementing Classes:
BasicTheme
,DefaultTheme
,ExperimentalUnsupportedTheme
public interface Theme
-
Method Summary
Modifier and TypeMethodDescriptionReturns the class for the body element specified by the theme.getDecorator
(String path) Collection<? extends ThemeResource>
Return the JavaScript resources for the theme.Returns the module key of the theme plugin module, or null if this theme doesn't come from a plugin.Return the key of the plugin which includes this theme.Collection<? extends ThemeResource>
Return the stylesheets for the theme.Deprecated.since 5.0 - with the common header themes shouldn't specify their own top navigation anymore.getXworkVelocityPath
(String packageName, String actionName, String result, String template) If this theme defines any specific overrides for Velocity XWork results, process them through here.boolean
Tells whether this theme requires rendering of the Space IA sidebar.void
init
(ThemeModuleDescriptor moduleDescriptor) Initialise the theme details from the given theme module descriptor.boolean
If this flag returns true, all requests for sitemesh templates w.r.t this theme will return NoDecorator, leading to a total bypassing of the sitemesh-based theme system.
-
Method Details
-
getColourScheme
ColourScheme getColourScheme() -
getBodyClass
String getBodyClass()Returns the class for the body element specified by the theme. -
getDecorator
-
getStylesheets
Collection<? extends ThemeResource> getStylesheets()Return the stylesheets for the theme.- Returns:
- a Collection of
ThemeResource
s representing custom stylesheets for this theme, or an empty list if none exist.
-
getJavascript
Collection<? extends ThemeResource> getJavascript()Return the JavaScript resources for the theme.- Returns:
- a Collection of
ThemeResource
s representing custom JavaScript for this theme, or an empty list if none exist.
-
init
Initialise the theme details from the given theme module descriptor. -
getPluginKey
String getPluginKey()Return the key of the plugin which includes this theme. May return null if the theme doesn't come from a plugin. -
getModuleKey
String getModuleKey()Returns the module key of the theme plugin module, or null if this theme doesn't come from a plugin. -
isDisableSitemesh
boolean isDisableSitemesh()If this flag returns true, all requests for sitemesh templates w.r.t this theme will return NoDecorator, leading to a total bypassing of the sitemesh-based theme system.- Returns:
- true if this theme wants to turn off sitemesh
-
getXworkVelocityPath
If this theme defines any specific overrides for Velocity XWork results, process them through here.- Parameters:
packageName
- the package name of the action being runactionName
- the name of the action being runresult
- the result string of the action being runtemplate
- the Velocity template path the action wants to process- Returns:
- the Velocity template path the action should process, with any overrides applied
-
hasSpaceSideBar
boolean hasSpaceSideBar()Tells whether this theme requires rendering of the Space IA sidebar. The Space IA side bar is the one on the left, which contains a tree view of pages, a chronological view of the blogs, and so on.Recommended value: false for themes that don't require rendering of the Space IA sidebar, true otherwise. This value is true for the default theme starting from Confluence 5.0.
- Returns:
- whether this theme needs rendering of the Space IA side bar.
- Since:
- 5.0
-