See: Description
Interface | Description |
---|---|
HierarchicalThemeSource |
Sub-interface of ThemeSource to be implemented by objects that
can resolve theme messages hierarchically.
|
Theme |
A Theme can resolve theme-specific messages, codes, file paths, etcetera
(e.g. CSS and image files in a web environment).
|
ThemeSource |
Interface to be implemented by objects that can resolve
Themes . |
UiApplicationContextUtils.THEME_SOURCE_BEAN_NAME
bean is available in the context or parent context, a default ResourceBundleThemeSource
will be created for requested themes. In this case, the base name of the property file will match
with the theme name.basenamePrefix
can be
set before the theme name for locating the property files like this:
<bean id="themeSource" class="org.springframework.ui.context.support.ResourceBundleThemeSource">
<br> <property name="basenamePrefix"><value>theme.</value></property>
<br></bean>
theme.<theme_name>XXX.properties
.