Top Description Fields Constructors Methods
org.springframework.ui.context.support

public Class DelegatingThemeSource

extends Object
implements HierarchicalThemeSource
Class Inheritance
All Implemented Interfaces
org.springframework.ui.context.HierarchicalThemeSource, org.springframework.ui.context.ThemeSource
Annotations
@Deprecated
since:6.0
Imports
org.springframework.lang.Nullable, org.springframework.ui.context.HierarchicalThemeSource, .Theme, .ThemeSource

Deprecated

since 6.0.

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.

Author
Juergen Hoeller
Since
1.2.4
See Also
UiApplicationContextUtils

Field Summary

Modifier and TypeField and Description
private ThemeSource
parentThemeSource

Deprecated as a consequence of ThemeSource being deprecated.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ThemeSource
getParentThemeSource()

Implements org.springframework.ui.context.HierarchicalThemeSource.getParentThemeSource.

Deprecated as a consequence of ThemeSource being deprecated.
Return the parent of this ThemeSource, or null if none.
public Theme
getTheme(String
the name of the theme
themeName
)

Implements org.springframework.ui.context.ThemeSource.getTheme.

Deprecated as a consequence of Theme being deprecated.
Return the Theme instance for the given theme name.
public void
setParentThemeSource(ThemeSource
the parent ThemeSource that will be used to resolve messages that this object can't resolve. May be null, in which case no further resolution is possible.
parentThemeSource
)

Implements org.springframework.ui.context.HierarchicalThemeSource.setParentThemeSource.

Deprecated as a consequence of ThemeSource being deprecated.
Set the parent that will be used to try to resolve theme messages that this object can't resolve.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

parentThemeSourceback to summary
private ThemeSource parentThemeSource

Deprecated

as a consequence of ThemeSource being deprecated. See corresponding docs for further information.

Annotations
@Nullable

Constructor Detail

DelegatingThemeSourceback to summary
public DelegatingThemeSource()

Method Detail

getParentThemeSourceback to summary
public ThemeSource getParentThemeSource()

Implements org.springframework.ui.context.HierarchicalThemeSource.getParentThemeSource.

Doc from org.springframework.ui.context.HierarchicalThemeSource.getParentThemeSource.

Deprecated

as a consequence of ThemeSource being deprecated. See corresponding docs for further information.

Return the parent of this ThemeSource, or null if none.

Annotations
@Override
@Nullable
getThemeback to summary
public Theme getTheme(String themeName)

Implements org.springframework.ui.context.ThemeSource.getTheme.

Doc from org.springframework.ui.context.ThemeSource.getTheme.

Deprecated

as a consequence of Theme being deprecated. 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
@Override
@Nullable
setParentThemeSourceback to summary
public void setParentThemeSource(ThemeSource parentThemeSource)

Implements org.springframework.ui.context.HierarchicalThemeSource.setParentThemeSource.

Doc from org.springframework.ui.context.HierarchicalThemeSource.setParentThemeSource.

Deprecated

as a consequence of ThemeSource being deprecated. See corresponding docs for further information.

Set the parent that will be used to try to resolve theme messages that this object can't resolve.

Parameters
parentThemeSource:ThemeSource

the parent ThemeSource that will be used to resolve messages that this object can't resolve. May be null, in which case no further resolution is possible.

Annotations
@Override