Package | Description |
---|---|
org.springframework.ui.context |
Contains classes defining the application context subinterface
for UI applications.
|
org.springframework.ui.context.support |
Classes supporting the org.springframework.ui.context package.
|
org.springframework.web.context.support |
Classes supporting the
org.springframework.web.context package,
such as WebApplicationContext implementations and various utility classes. |
org.springframework.web.servlet.support |
Support classes for Spring's web MVC framework.
|
Modifier and Type | Method and Description |
---|---|
Theme |
ThemeSource.getTheme(java.lang.String themeName)
Return the Theme instance for the given theme name.
|
Modifier and Type | Class and Description |
---|---|
class |
SimpleTheme
Default
Theme implementation, wrapping a name and an
underlying MessageSource . |
Modifier and Type | Method and Description |
---|---|
Theme |
DelegatingThemeSource.getTheme(java.lang.String themeName) |
Theme |
ResourceBundleThemeSource.getTheme(java.lang.String themeName)
This implementation returns a SimpleTheme instance, holding a
ResourceBundle-based MessageSource whose basename corresponds to
the given theme name (prefixed by the configured "basenamePrefix").
|
Modifier and Type | Method and Description |
---|---|
protected void |
ResourceBundleThemeSource.initParent(Theme theme)
Initialize the MessageSource of the given theme with the
one from the corresponding parent of this ThemeSource.
|
Modifier and Type | Method and Description |
---|---|
Theme |
StaticWebApplicationContext.getTheme(java.lang.String themeName) |
Theme |
AbstractRefreshableWebApplicationContext.getTheme(java.lang.String themeName) |
Theme |
GenericWebApplicationContext.getTheme(java.lang.String themeName) |
Modifier and Type | Method and Description |
---|---|
protected Theme |
RequestContext.getFallbackTheme()
Determine the fallback theme for this context.
|
Theme |
RequestContext.getTheme()
Return the current theme (never
null ). |
static Theme |
RequestContextUtils.getTheme(HttpServletRequest request)
Retrieves the current theme from the given request, using the ThemeResolver
and ThemeSource bound to the request by the DispatcherServlet.
|
Modifier and Type | Method and Description |
---|---|
void |
RequestContext.changeTheme(Theme theme)
Change the current theme to the specified one,
storing the new theme name through the configured
ThemeResolver . |