Class DelegatingThemeSource
java.lang.Object
org.springframework.ui.context.support.DelegatingThemeSource
- All Implemented Interfaces:
HierarchicalThemeSource
,ThemeSource
@Deprecated(since="6.0")
public class DelegatingThemeSource
extends Object
implements HierarchicalThemeSource
Deprecated.
as of 6.0 in favor of using CSS, without direct replacement
Empty ThemeSource that delegates all calls to the parent ThemeSource.
If no parent is available, it simply won't resolve any theme.
Used as placeholder by UiApplicationContextUtils, if a context doesn't define its own ThemeSource. Not intended for direct use in applications.
- Since:
- 1.2.4
- Author:
- Juergen Hoeller
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Return the parent of this ThemeSource, ornull
if none.Deprecated.Return the Theme instance for the given theme name.void
setParentThemeSource
(ThemeSource parentThemeSource) Deprecated.Set the parent that will be used to try to resolve theme messages that this object can't resolve.
-
Constructor Details
-
DelegatingThemeSource
public DelegatingThemeSource()Deprecated.
-
-
Method Details
-
setParentThemeSource
Deprecated.Description copied from interface:HierarchicalThemeSource
Set the parent that will be used to try to resolve theme messages that this object can't resolve.- Specified by:
setParentThemeSource
in interfaceHierarchicalThemeSource
- Parameters:
parentThemeSource
- the parent ThemeSource that will be used to resolve messages that this object can't resolve. May benull
, in which case no further resolution is possible.
-
getParentThemeSource
Deprecated.Description copied from interface:HierarchicalThemeSource
Return the parent of this ThemeSource, ornull
if none.- Specified by:
getParentThemeSource
in interfaceHierarchicalThemeSource
-
getTheme
Deprecated.Description copied from interface:ThemeSource
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).
- Specified by:
getTheme
in interfaceThemeSource
- Parameters:
themeName
- the name of the 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. - See Also:
-