Class SimpleTheme
- java.lang.Object
- org.springframework.ui.context.support.SimpleTheme
- All Implemented Interfaces:
Theme
public class SimpleTheme extends Object implements Theme
DefaultThemeimplementation, wrapping a name and an underlyingMessageSource.- Since:
- 17.06.2003
- Author:
- Juergen Hoeller
Constructor Summary
Constructors Constructor Description SimpleTheme(String name, MessageSource messageSource)Create a SimpleTheme.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageSourcegetMessageSource()Return the specific MessageSource that resolves messages with respect to this theme.StringgetName()Return the name of the theme.
Constructor Detail
SimpleTheme
public SimpleTheme(String name, MessageSource messageSource)
Create a SimpleTheme.- Parameters:
name- the name of the thememessageSource- the MessageSource that resolves theme messages
Method Detail
getName
public final String getName()
Description copied from interface:ThemeReturn the name of the theme.
getMessageSource
public final MessageSource getMessageSource()
Description copied from interface:ThemeReturn the specific MessageSource that resolves messages with respect to this theme.- Specified by:
getMessageSourcein interfaceTheme- Returns:
- the theme-specific MessageSource (never
null)