Top Description Methods
org.springframework.ui.context

public Interface ThemeSource

Known Direct Subinterfaces
org.springframework.ui.context.HierarchicalThemeSource
Annotations
@Deprecated
since:6.0
Imports
org.springframework.lang.Nullable

Deprecated

since 6.0.

as of 6.0 in favor of using CSS, without direct replacement

Interface to be implemented by objects that can resolve Themes. This enables parameterization and internationalization of messages for a given 'theme'.
Authors
Jean-Pierre Pawlak, Juergen Hoeller
See Also
Theme

Method Summary

Modifier and TypeMethod and Description
public Theme

Returns:

the corresponding Theme, or null if none defined. Note that, by convention, a ThemeSource should at least be able to return a default Theme for the default theme name "theme" but may also return default Themes for other theme names.
getTheme
(String
the name of the theme
themeName
)
References Deprecated Theme is deprecated or references (maybe indirectly) at least one deprecated element.

Return the Theme instance for the given theme name.

Method Detail

getThemeback to summary
public Theme getTheme(String themeName)

References Deprecated

Theme is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Return the Theme instance for the given theme name.

The returned Theme will resolve theme-specific messages, codes, file paths, etc (e.g. CSS and image files in a web environment).

Parameters
themeName:String

the name of the theme

Returns:Theme

the corresponding Theme, or null if none defined. Note that, by convention, a ThemeSource should at least be able to return a default Theme for the default theme name "theme" but may also return default Themes for other theme names.

Annotations
@Nullable
See Also
org.springframework.web.servlet.theme.AbstractThemeResolver#ORIGINAL_DEFAULT_THEME_NAME